Forum Replies Created

Viewing 11 replies - 61 through 71 (of 71 total)
  • I’m seeing the links. Did you find a fix?

    One more alternative:

    You can set up your main page to use the “HTML Get + Permalinks” switching option, check the “Enable permalinks” box, and put the location of your main page into the Permalinks Page box. You can then have the main use the following codes:

    [link-library-cats settings=X]
    [link-library settings=X]

    The library will then create the subpages for you, one for each category. However, each subpage will then have the entire list of categories (locations) at the top, which may not be what you want.

    It drove me crazy when I started, too, but I seem to have it under control now. You might check out his page at https://yannickcorner.nayanna.biz/wordpress-plugins/link-library. It has links to examples of the plug-in in use. And if you click on “Config,” it shows a screenshot of the library settings used to create the example.

    The first thing you need to do first is to create a third library that has all of the categories from both of the first two libraries in it. Let’s assume for purposes of this discussion that it is Library 3.

    You then need to create a search results page. The search results page will have a title something like “Search Results,” and the following two lines in it:

    [link-library-search settings=3]
    [link-library settings=3]

    Next, go to the search results page. When seen on its own (not as a result of a search), it will have a complete list of all your links. Ignore that, because no one will ever see it. Now view the source of that page. There will be a bit in it that will read something like this:

    <form method=”get” id=”llsearch”>
    <div>
    <input onfocus=”this.value=”” value=”Search…” name=”searchll” id=”searchll” type=”text”>
    <input value=”X” name=”page_id” id=”page_id” type=”hidden”>
    <input value=”Search” type=”submit”>
    </div>
    </form>

    where the input value (X) for the page_id will be the number of your newly created page. Copy and paste all of that code into each of your two library pages, and save each page.

    Voila! You will have a search form that will search all your links. When someone uses the form, it will take them to your newly created Search Results page. However, the list of all the links will not appear on that page when it is found through the search function. Instead, that page will have only a search box and the results of the search.

    I’ve found two ways of doing this. The first is to set up a library with the categories in a drop-down menu, and have the first category of links be a dummy category like, “Select a location,” that has no actual links in it. On the settings for that library, you would choose, “Only show one category at a time,” and choose your dummy category as the “Default category to be shown when only showing one at a time.” You would choose Ajax as the switching method.

    You would then create a page that has the following code in it:

    [link-library-cats settings=X]
    [link-library settings=X]

    where X is the number of the library you just created. This creates a page with a drop-down menu in which, after someone has chosen a category (location) and pressed the “Go” button, the appropriate links are shown. The only problem with this method is that before someone chooses a category, the page will say “No links found” after the drop-down menu.

    The only other way I have found to make this work is to manually create separate pages. You would create a main page for the categories. You would then create subpages of the main page, each of which would have the same slug as the slug for the category (location) involved. For example, if your categories had the slugs location1, location2, etc., your main page might be links, and your subpages would be links/location1, links/location2, etc. Each of the subpages would have this line of code:

    [link-library categorylistoverride="X" settings=Y]

    where X is the category (location) you want to display on that page, and Y is the overall library with all the links.

    The main page that would have only:

    [link-library-cats settings=Y]

    In the Library settings page for Library Y, you would specify HTML Get + Permalinks as the switching method, check the “Enable Permalinks” box, and specify the main page as the permalinks page. That way, the main page would display the list of categories, and would link to all of the subpages.

    Thread Starter CarolWP

    (@carolwp)

    I finally found an answer! The first thing you need to do is to create a search results page. The search results page will have a title something like “Search Results,” and the following two lines in it:

    [link-library-search settings=X]
    [link-library settings=X]

    where X is the number of a library that contains all your link categories.

    Next, go to that page. When seen on its own (not as a result of a search), it will have a complete list of all your links. Ignore that, because no one will ever see it. Now view the source of that page. There will be a bit in it that will read something like this:

    <form method="get" id="llsearch">
    <div>
    <input onfocus="this.value=''" value="Search..." name="searchll" id="searchll" type="text">
    <input value="2003" name="page_id" id="page_id" type="hidden">
    <input value="Search" type="submit">
    </div>
    </form>

    where the input value for the page_id will be your newly created page. Copy and paste all of that code into any page in which you want to have a form to search links, and save the page. Voila! You will have a search form that will search all your links, not just the ones on the page on which the search form is located. When someone uses the form, it will take them to your newly created Search Results page. However, the list of all the links will not appear on that page when it is found through the search function. Instead, that page will have only a search box and the results of the search.

    I finally found an answer! The first thing you need to do is to create a search results page. The search results page will have a title something like “Search Results,” and the following two lines in it:

    [link-library-search settings=X]
    [link-library settings=X]

    where X is the number of a library that contains all your link categories.

    Next, go to that page. When seen on its own (not as a result of a search), it will have a complete list of all your links. Ignore that, because no one will ever see it. Now view the source of that page. There will be a bit in it that will read something like this:

    <form method="get" id="llsearch">
    <div>
    <input onfocus="this.value=''" value="Search..." name="searchll" id="searchll" type="text">
    <input value="2003" name="page_id" id="page_id" type="hidden">
    <input value="Search" type="submit">
    </div>
    </form>

    where the input value for the page_id will be your newly created page. Copy and paste all of that code into any page in which you want to have a form to search links, and save the page. Voila! You will have a search form that will search all your links, not just the ones on the page on which the search form is located. When someone uses the form, it will take them to your newly created Search Results page. However, the list of all the links will not appear on that page when it is found through the search function. Instead, that page will have only a search box and the results of the search.

    This is a two-step process. First, you put the image you want into the category description for each category. The form you use is the usual one you’d use to put an image into a web page, except using [ and ] instead of < and >, like this:

    [img src="someimage.jpg"]

    Then you go to the Library Settings page, and check the box for, “Show Category Description.” There is a box to the right of that which allows you to choose whether to show the category description on the right or the left.

    When you’ve finished all that, just click “Update Settings,” and the image will show where you want it.

    This is a two-step process. First, you put the image you want into the category description for each category. The form you use is the usual one you’d use to put an image into a web page, except using [ and ] instead of < and >, like this:

    [img src="someimage.jpg"]

    Then you go to the Library Settings page, and check the box for, “Show Category Description.” There is a box to the right of that which allows you to choose whether to show the category description on the right or the left.

    When you’ve finished all that, just click “Update Settings,” and the image will show where you want it.

    CarolWP

    (@carolwp)

    Let me know if you find an answer. I’ve been asking the same thing.

    CarolWP

    (@carolwp)

    Can I ask what code you are using on the main page? And is it automatically creating the subpages, or are you creating each of them separately? If you are creating them separately, what code would be on each of them?

    I’m asking because your search form seems to be working on each of your pages to find links on any page–something I’ve been unable to get mine to do, with a similar set-up. When I do it, the search form searches only for links already found on that page, not all links in any category.

Viewing 11 replies - 61 through 71 (of 71 total)