Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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!
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.
I was about to suggest this solution, as it can be implemented out-of-the-box. Glad you've found it yourself. Cheers, /Dirk
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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!
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.
I was about to suggest this solution, as it can be implemented out-of-the-box. Glad you've found it yourself.
Cheers,
/Dirk
is working on a reply...