Fork me on GitHub

Bread crumbs anybody?  Bottom

  • I need cut and paste code for display user Content pages visits to News and to Content pages itself. Or is there a better way to incorporate this functionality into Zikula? Thanks for the help.
  • I take it that no one can answer this "riddle"? Bread crumb functionality may be a good idea for the next version of Zikula, especially fOr News and Content, even PageMaster, and others. thanks
  • Hi,

    Sorry no one got back to you about this. Breadcrumb functionality is difficult in a system like Zikula, as every module has different ways of storing and fetching data. However, if you want to achieve the effect for just a few modules, you can easily create a theme plugin with a bit of PHP code that will:

    1. Get the current module display name, and output it
    2. Using the module API, Get the item category (if categories are in use)
    3. Get the item name, or any other information (for example, News year, month, day)

    Mateo can probably give a short section of code that will do this for news. I have used content, but I'm not familiar with the APIs so I can't give code off the top of my head, but it's probably easier than the News version of the code.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • What would you like to display in the breadcrumb, that is also the question. For News, there is only 1 level or maybe 2 if you count the categories as well.
    A breadcrumb in for example a webstore makes a lot of sense.

    In BlankTheme we have tried a breadcrumb, but it all depends on what you want ot show.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Yeah
    Breadcrumbs are very relative to the needs of each website, and Zikula is too flexible that we can have many combinations of the modules in use. Breadcrumbs by default would be like:
    Startpage > ModName > Category > Item name/title

    but sometimes websites needs:
    Startpage > Section (Category) > Service (Modname) > Item name/title

    so, what to do you need?
    i didn't get the idea in the first post...

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Content is able to create links to subpages but each subpage does not create a link back to previous pages; I suppose one could use the back button but what the heck were using Zikula aren't we?. If a block of News articles are inserted into the content pages once a user "clicks out" of the content page a user cannot return to the content pages they just left. One then needs to click thru a series of links to the Content page to continue reading the article they just left. I hope this makes sense. thanks for the help.
  • Well
    late answer but better that no answer.

    That's a very specific and hard issue
    due to the flexibility of Zikula and a fixed content structure like that.
    Two modules involved, and it's hard to know which Content page refers which article or it's "easy"? mmm, i guess that a custom plugin checking the HTTP_REFERER to check if there's a previous Content page, and building the custom bread crumbs for your site could work...

    A visible study case or a URL of that site to see the structure of the content and articles may help to see how to implement this.

    Greetings

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 0 users

This list is based on users active over the last 60 minutes.