Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • SaphuA 124 posts 87 karma points
    May 06, 2009 @ 23:16
    SaphuA
    0

    Use Name or Title

    So I have this textpage document type with two properties:
    - Title (string)
    - ShowTitle (bool)

    What I would like to do is show the name of the textpage as a h1 by default, but display the contents of the title property if showtitle is true.

    My guess is that I need a little macro that does this, but I need a push in the right direction :)

    Thanks!

  • SaphuA 124 posts 87 karma points
    May 06, 2009 @ 23:36
    SaphuA
    0

    Ok, I found another way to do this.

    I added the following to my template, which does pretty much what I want:


    If title isn't set, it uses the name instead.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 06, 2009 @ 23:38
    Dirk De Grave
    0

    I was about to suggest this solution, as it can be implemented out-of-the-box. Glad you've found it yourself.

    Cheers,
    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft