This is a mega-noob question but here goes...
I have a basic html table containing a list of hyperlinks to other pages within the site. But I only want a link to be shown ’if’ the page being linked to is ’published’.
Is this possible with a simple bit of code?
Steve
it depends how you plan to add the links. if you hard code them I can’t think of an easy way to do it, but if wayfinder for example generate your links you can choose to hide unpublished docs.
-
MODX Staff
- 1,535 Posts
I echo sinbad, Wayfinder or Ditto is the way to go (depending on which best fits your requirements) - you could easily use the templating options in both of these to do what you want them to do.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
Hmmm,
Maybe I am misunderstanding this, but doesn’t Wayfinder not show unpublished documents by default? And I can’t recall a parameter to change that...or? I know Ditto has a published docs parameter though.
cheers/k