Skip to content

How to put search field in my sitemap? #875

Discussion options

You must be logged in to vote

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:

<?php echo $this->yellow->page->parseContentShortcut("search", "", "block"); ?>

This is equivalent to adding a [search] shortcut in a md page. Should the search require a different location (for example /en/search/) write it inside the quotes as the second argument. Ho…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by derion1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants