I wonder if this is another one for shortcodes or if I'm missing a simpler solution ...
I have an editable region of type 'file' for the client to upload a PDF document - in the globals.php template. They will then want to link to this in more than one location in the website. I can get the link as follows:
Should I now create the above bit of code as a shortcode so the user keys in something like
Now I've asked the question, I'm convinced it must be the way to do it!?
I have an editable region of type 'file' for the client to upload a PDF document - in the globals.php template. They will then want to link to this in more than one location in the website. I can get the link as follows:
- Code: Select all
<a href="<cms:get_custom_field 'brochure_name' masterpage='globals.php' />" target="_blank" >DOWNLOAD BROCHURE ABC</a>
Should I now create the above bit of code as a shortcode so the user keys in something like
- Code: Select all
[brochure_ABC_download/]
Now I've asked the question, I'm convinced it must be the way to do it!?