Code Monkey home page Code Monkey logo

Comments (6)

featdd avatar featdd commented on August 16, 2024

don't you have to pass the uid of the record you want?

from dpn_glossary.

Scopestyle avatar Scopestyle commented on August 16, 2024

Thanx for the quick reply!

I'm trying to adjust the code which calls upon the tx_news extension which looks like this:

[globalVar = GP:tx_news_pi1|news > 0]

    lib.breadcrumbs.10.1.NO.doNotLinkIt = 0
    lib.breadcrumbs.10.1.NO.stdWrap.crop = 50 | …

    lib.breadcrumbs.20 = RECORDS
    lib.breadcrumbs.20 {
        dontCheckPid = 1
        tables = tx_news_domain_model_news
        source.data = GP:tx_news_pi1|news
        source.intval = 1
        conf.tx_news_domain_model_news = TEXT
        conf.tx_news_domain_model_news.field = title
        conf.tx_news_domain_model_news.htmlSpecialChars = 1
        wrap = <li><span>|</span></li>
        stdWrap.crop = 50 | …
    }

[global]

This works for the news extension, from what I understand (read: trying to understand) is there is no uid record being passed in this example, other then "look for the module on this page and give out the name in field: title". Perhaps this only works there, or I'm targetting the wrong tables.

According to the provided example on this page I should be calling upon
[globalVar = GP:tx_extensionKey_pi1|VariableName > 0]
.. but ..
[globalVar = GP:tx_dpnglossary_glossarydetail|name > 0]
doesn't seem to be doing anything (I looked up in the database that the names are stored in a field called name) but that's probably wrong variable right?

from dpn_glossary.

featdd avatar featdd commented on August 16, 2024

take a look at :

source.data = GP:tx_news_pi1|news

it has to be the name of the plugin (what you will see in the url) there it takes the data from

from dpn_glossary.

featdd avatar featdd commented on August 16, 2024
source.data = GP:tx_dpnglossary_glossarydetail|term

from dpn_glossary.

Scopestyle avatar Scopestyle commented on August 16, 2024

Ahh that was exactly it! Thank you so much 👍

from dpn_glossary.

featdd avatar featdd commented on August 16, 2024

you're welcome

from dpn_glossary.

Related Issues (20)

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.