We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31381
    • 31 Posts
    Hi,

    I’m running a website with lots of Content (text, pictures etc.) with should be available under one of the creative commons licences.

    I was thinking about writing a snippet to let the users deside which licence fits best an include that one in the footer of the page.

    I haven’t written an extention so far, but what do you think about that plan:

    - Make some TVs to be included in the templates of the contents.
    - Snippet reads that TVs an include the Chunk that fits best.
    - Chunks could be taken from: http://creativecommons.org/choose/

    Do you know about somethink like that which ist done so far?

    If not:
    - is there a way to automatically create the TVs for the snippet - so the user don’t has to do.
    - how can I let the snippet read the TVs?

    ...have to read some tutorials about snippets...

    vegano
      • 3749
      • 24,544 Posts
      I don’t think you’ll need a snippet. You should be able to name the chunks with the license name and make the TV a drop-down list of those names (or radio options). Then your tag in the footer will look something like this:

      {{[*TvName*]}}


      You might also want to look at TV-based chunks: http://wiki.modxcms.com/index.php/Create_TV-Based_Chunks. That will let you add new license chunks to the category and have them automatically appear in the TV.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 31381
        • 31 Posts
        sounds sweet - thanks for the advices!