How to put a search field in my sitemap? #875
-
Hi. I think it should be placed right before:
but I am not a coder, so any help would be great. How do I "invoke" search field in my sitemap? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello! First of all: could you please edit the Title of your question and write there the text of the question? (i.e. "How can I place search field in my sitemap page?"). You should use the button Edit at the top right corner. Otherwise it is not clear from the title what you are asking for and the whole discussion risks being flagged and deleted... Regarding your question, it should suffice to add in the layout this line:
This is equivalent to adding a Edit: I had written |
Beta Was this translation helpful? Give feedback.
-
Thank you, man. That worked. I changed the name of the question. |
Beta Was this translation helpful? Give feedback.
The shortcut parsing event has been renamed and modified in the latest API. Please replace the line:
<?php echo $this->yellow->page->parseContentShortcut("search", "", "block"); ?>
With:
<?php echo $this->yellow->page->parseContentElement("search", "", "", "block"); ?>
See also: #967 and Yellow parse events in the API documentation.