Forum Replies Created

Viewing 15 replies - 1 through 15 (of 324 total)
  • Plugin Author wizzud

    (@wizzud)

    CMW filters a specific Custom Menu and shows certain menu items from that Custom Menu. CMW can be configured to conditionally show menu items based on the presence/absence of a “current menu item” within the Custom Menu [as determined by WordPress].

    If using the same shortcode, then if CMW is configured with Branch=current menu item – and there is a current menu item for the current page – then the items displayed will depend on the current page (and the structure on the menu being used as the source, of course).

    If you modify the shortcode for each/any page then you can make any page show different menu items.

    There are 2 types of shortcode usage : one shows an existing CMW widget instance, the other configures an instance of CMW.
    ex.1 : [cmwizard widget=1/]
    ex.2 : [cmwizard menu=”main” branch=”current” … /]

    If you have a specific example of what you want to achieve, that might be easier to answer?

    Plugin Author wizzud

    (@wizzud)

    Yes.

    Thread Starter wizzud

    (@wizzud)

    If you are going to post responses here – as you have stated above, and as you have also indicated on the thread in your own forum – then marking this as Resolved seems a mite … premature?
    Since there is an unconfirmed bug, and an unanswered question, I’m resetting to Not Resolved.
    When the investigation – which I assume is ongoing? – provides some results (or even just some feedback) then it might be acceptable to mark the topic as Resolved.

    Thread Starter wizzud

    (@wizzud)

    Topic continued on the Business Directory Support Forum, at https://businessdirectoryplugin.com/support-forum/support-questions/import-export-broken-for-images/

    I now have a clearer understanding of the usage of the CSV’s ‘images’ column.
    This topic now resolves down to 2 (related?) issues …

    • a bug, in the exporting of “Image (file upload)” fields, and
    • a question about how to import “Image (file upload)” (the file as an upload, and the caption)

    … both of which are being investigated ??

    Thread Starter wizzud

    (@wizzud)

    4. In privacy-bar.php, put the UL.gdpr-cookie-categories inside the if( $show_cookie_cat_checkboxes ) test (ie. don’t output the empty UL tags unless categories are being shown).

    Plugin Author wizzud

    (@wizzud)

    Apologies for the [very!] delayed response.

    1. If you’re using multiple custom menus, and the determination of which menu/menus is/are displayed is page-dependent, then something like Dynamic Widgets might be more appropriate.

    2. Yes, CMW could easily do that. But the same effect – of just hiding low sub-levels of a menu – can be achieved with some CSS?

    3. The presentation of the menu items is more to do your theme than anything else. CMW can reduce the number of items sent to the page, but it has no front end styling (at all!).

    CMW is all about filtering one menu’s items based on certain criteria, often involving the page currently being shown. I get the impression that you are more concerned with which [of several?] menus get displayed when, how many levels of any particular menu are visible, and how what’s visible gets displayed. So while CMW can probably do the 1st, definitely the 2nd, but not the 3rd, I suspect that it might have more specific functionality than is required here, and that WordPress’s own Navigation Menu widget, with Dynamic Widgets (or similar) plugin, plus some CSS rules added to the theme, might suit better.

    Plugin Author wizzud

    (@wizzud)

    Yes, it is.
    Admittedly not very diligently for a while, but that is being remedied.

    Plugin Author wizzud

    (@wizzud)

    Thank you! Fixed.

    Plugin Author wizzud

    (@wizzud)

    CMW can only work with one Current Item, and it can also only work with what WordPress has determined are the Current Items [in the menu in question].

    For example, let’s say you have a [very simple!] menu of…
    [Page] Alpha
    – [Page] Omega
    [Page] Beta
    – [Page] Omega
    [Page] Gamma
    – [Page] Omega
    …and you use WordPress’s own Navigation Menu widget to show that menu.
    If you show Omega at the front end, then all 3 ‘Omega’ menu items will be marked (by WordPress) as “current”, with each parent item also being marked accordingly.
    If you were to add a CMW instance, looking for Current Item, then CMW would find multiple current items and would elect to use the 1st one (or the last one if you set the Fallback option) as being its Current Item.

    This is because WordPress looks at the here-and-now, as in “Does the page [URL] currently on display match any of the items in this menu?”. It does not reference how you actually got to the page in question, so the fact that you were previously on a “Beta” page when you clicked through to Omega is not relevant (to WordPress, although it obviously is to you!).

    The only way I could achieve what your after is to not use the Page menu items, but to use Custom Links in the menu.
    Eg. the above menu becomes more like…
    [Page] Alpha
    – [Custom Link] ../Omega/?parent=alpha
    [Page] Beta
    – [Custom Link] ../Omega/?parent=beta
    [Page] Gamma
    – [Custom Link] ../Omega/?parent=gamma
    Testing with WordPress’s Navigation Menu widget indicated that clicking on the “?parent=beta” menu item navigated to the Omega page, and the only widget item marked as current was the “?parent=beta” item.
    Then adding a CMW instance that looked for Current Item would correctly show me just the “Beta” part of the menu.

    I’m sure there are other, programmatic, ways to achieve this that don’t result in different URL query strings, but they would involve hooking into a WordPress filter/action somewhere and (hopefully) somehow modifying its determination of Current Item.

    Plugin Author wizzud

    (@wizzud)

    I think (but I’m not entirely sure!) that the structure indicated is …

    Root Page
    – Page 1
    – – Page 2
    – Page 3
    – – Page 2

    You want :
    – if Page 1 is current, menu contains Root Page, Page 1 & Page 2
    – if Page 3 is current, menu contains Root Page, Page 3 & Page 2
    In both cases, with the structure above, it’s “show current item, all children, and ancestors back to root level”, so Yes.

    Plugin Author wizzud

    (@wizzud)

    I suspect this is more to do with the cloning mechanism than CMW.
    What are you using to do the clone?

    Plugin Author wizzud

    (@wizzud)

    Hi.
    First off, I’m going to make an assumption that when you say “When clicked on itemX” you mean “When itemX is the current menu item …“, ie. the current page showing is the one pointed to by itemX.
    If this is not the case, and you want all the “clicking” to occur without navigation to a new page, then what you are asking for is an interactive menu … which is not what this plugin supplies.

    Okay, relating to your points:
    1 = when a level-1 (root) item is the current menu item, menu contains all level-1 items
    2 = when a level-2 item is the current menu item, menu contains the current item and its siblings, plus current item ancestors back to root, with their siblings
    3 = same as 2

    These 3 resolve into : menu contains current item, current item siblings, all current item ancestors, and the siblings of current item ancestors.

    That’s (non-default) settings of:
    Primary Filter
    Branch : Current Item
    Secondary Filter, Inclusions
    Branch Ancestor : to level 1 (root)
    … with Siblings : to level 1 (root)
    Branch Siblings : [checked]

    The shortcode equivalent resembles

    
    [cmwizard menu=N branch=current ancestors=1 ancestor_siblings=1 siblings=1/]
    • This reply was modified 7 years, 3 months ago by wizzud.
    Plugin Author wizzud

    (@wizzud)

    I suspect that you have copy-pasted a shortcode into a page/post?

    If so then what has happened is that the copy picked up the CODE element that contains the shortcode text and pasted that in as well. Switch the editor to text mode and remove the CODE element from around the shortcode (so just delete that code tag that you have quoted, and the closing /code tag as well).

    Plugin Author wizzud

    (@wizzud)

    Sorry, but No.
    CMW doesn’t look at what the menu items point to, just the items themselves.

    Plugin Author wizzud

    (@wizzud)

    I’m glad you like the plugin, thank you!
    My apologies for the wait, but I’m not always able to respond the same day.
    Unfortunately, the answer to your question is No.

    What the plugin looks at and filters is the menu items, not whatever those items may point to (eg. your news posts). So the plugin is given a menu structure, it removes (maybe) some menu items, and it then passes the redacted structure back to the caller. It doesn’t concern itself with what any specific menu item is supposed to do, it merely has to decide whether to chop it out or keep it. No menu items are moved, they are simply either in or out.

    If your menu has a single menu item that brings in all your news posts – via a plugin maybe? – then that is the place to sort them. However, if your menu has each news post as a specific menu item then you’ve effectively fixed the order at that point.

    I’m sorry if this is of no help to you.
    Regards.

Viewing 15 replies - 1 through 15 (of 324 total)