![]() |
|
function to print a link to a page - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: function to print a link to a page (/thread-9510.html) |
function to print a link to a page - vincent3569 - 2012-01-20 hi is there a function to print a link to a specific page, out of context of this page ? for example, I want add a link to a page called 'credit' in the footer of my website. function to print a link to a page - sbillard - 2012-01-21 Your question is a little ambiguous. Do you mean a custom page (script)? or a particular Zenpage page? For the former there is function to print a link to a page - vincent3569 - 2012-01-22 hi My request was about the 2nd case, so, I needed to use But I am a little bit disapointed. in other hand, printPageLinkURL('credit')gives the following result : I wish that printPageLinkURL('credit') gives folowwing code : you could do that ? the printPageLinkURL is unused in the full code of zenphoto 1.4.2. function to print a link to a page - sbillard - 2012-01-23 I have no issue with changing this. But I hope other theme developers will step in. Changing the function will make any existing use not work. So even if Zenphoto does not currently use it, some one else might. function to print a link to a page - acrylian - 2012-01-23 Actually I think as well that url functions should include the full url and not a relative one. But I fear issues as this require quite a lot changes as the get variants should do that as well. Howerver the browser actually will add that itself as well. In short maybe the best way is to echo the get variants and add the WEBPATH constant manually as a workaround. function to print a link to a page - sbillard - 2012-01-23 Please try the DEV nightly and give feedback. printPageLinkURLis changed to mimic printCustomPageURL function to print a link to a page - vincent3569 - 2012-01-23 hi I saw the track http://www.zenphoto.org/trac/changeset/9042. I will try the NB as soon as possible function to print a link to a page - sbillard - 2012-01-24 I hope that is "good" If all is well I will retrofit it to 1.4.2. Let me know. function to print a link to a page - reneesanguinetti - 2012-01-24 Hello, function to print a link to a page - sbillard - 2012-01-25 Well, as this thread does state, the As to your question. It is better to use provided functions than to hand craft the URLs. For instance these fuctions deal with knowledge of the setting of the function to print a link to a page - acrylian - 2012-01-25 If you mean within the Zenpage page content you cannot use PHP at all. Then you need to use tinyZenpage via TinyMCE to include links. Those of course take care of mod rewrite or not but are of course pasted statically so later changes cannot be applied. |