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

    this is a chunk that i have created for a page with news-items:

    <span class="ditto_pageTitle"> - <a href="[+urlnews+]" [+link_attributes+]>[+longtitle+]</a></span>
    <div class="ditto_introText">[+introtext+]

    <a href="[+urlnews+]" [+link_attributes+]>Read more</a>


    </div>
    <div class="ditto_pageTitle_placed_on"><i>[+date+] by [+author+]</i></div>

    i have also 2 TV’s: one that we can enter an url ([+urlnews+]) with default value ’www.domain.com/assets/files/’ and one to upload this newsitem (pdf, docx, xlsx, ...) to ’/assets/files/’

    as you can see you can click on the title or on the ’read more’-link to view this pdf, docx or xlsx-file.

    but we don’t use always a file for this newsitem. sometimes we only use the introtext for a little short message, but than we can yet click on the newsitem or ’read more’-link, but it points to nothing.

    so i need something that can check if the url is empty or not. if it is empty the , than it should be possible to click on nothing

    does anyone know how to solve this or does anyone know an other way to do this?

    thanks
      • 14089
      • 56 Posts
      i would think that phx would be the way to go.

      http://modxcms.com/extras/package/?package=342
        for all things independent, check out http://www.indieophile.com
        • 7019
        • 135 Posts
        thanks

        I will test it