Giter Club home page Giter Club logo

breadcrumbs's People

Contributors

bumme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

breadcrumbs's Issues

Invalid HTML

I am not at all fond of these new scheme.org specs as they throws a heap of validation errors (as it is not a part of any standard spec yet).
It could at least be optional (e.g. &useSchemaOrgAttribs=1) or something. Don't force us to all have invalid code everywhere that breadcrumbs lie. It also bloats out the html as well.

pathThruUnPub = 0

When pathThruUnPub = 0 and U try to open unpublish page , U will get error.
Fatal error: Uncaught Error: Call to a member function get() on null in core/components/breadcrumbs/model/breadcrumbs/breadcrumbs.class.php:170 Stack trace: #0 core/components/breadcrumbs/model/breadcrumbs/breadcrumbs.class.php(266): BreadCrumbs->showCurrentPage(37) #1 core/cache/includes/elements/modsnippet/2.include.cache.php(55): BreadCrumbs->run() #2 core/model/modx/modscript.class.php(70): include('/www...') #3 core/model/modx/modparser.class.php(536): modScript->process() #4 core/components/pdotools/model/pdotools/pdoparser.class.php(273): modParser->processTag(Array, false) #5 core/model/modx/modparser.class.php(250): pdoParser->processTag(Array, false) #6 core/components/pdotools/model/pdotools/pdoparser.class.php(64): modParser->processElementTags('[[$breadcrumbs]...', '
Modx 2.7, 2.6.5
U can see this error only if U are logged in Manager

Make breadcrumbs more templatable

Would like to see a more templatable way of the the crumb parts.

What I do is very simple;
Modify the breadcrumbs class inside the model directory and add these lines below the $this->_tpls = array(); definition

/* parse tpl names into _tpls array */
foreach($this->config as $key => $value) {
    if(substr($key, 0, 10) == 'bcTplCrumb') {
        $this->_tpls[$key] = $value;
    }
}

Now you can add properties with the tpl name and override the templates within the breadcrumb. Other possibility is also fine by me but this works great and is easy to apply

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.