Customizing the "search" result page

Question Nr.1.: Is there a way how to create a custom search result page with cornerstone? Or do I really need to create my own template?

Question Nr. 2: Is there a way how to filter a looper after all elements were loaded?

Example: You have a page with lot of links to pdf documents. Like a lot. Listing all those documents with a looper works like a charm. Having more than 30 on the page is not consumer friendly though. It would be great to provide some kind of a filter and this way limit the looper’s result.

Is this possible?

Hello Ondrej,

Thanks for writing in!

1.) You will need to go to Cornerstone > Create and create a new Archive template.

You will have to assign this archive layout as the layout for the Search Results.

Before creating your layout, you must assign the Search Results in the preview selector first:

2.) Yes, you may be able to use a sort filter and the looper in your custom layout. Check out this video tutorial:

Best Regards.

thank you very much I’ll check it out as soon as possible.

Hi Ondrej,

Glad that we are able to help you with this, please let me know if you need any further assistance.

Thanks

How can I change the {{dc:post:title}} from title to e.g. H1?

Hello Ondrej,

The {{dc:post:title}} will display the post title. If you want to change the heading tag, you will have to do it in the Headline element setting as shown below.

Kindly let us know how it goes.

ah misunderstanding:
I want to display the H1 instead of the post title in the looper consumer. Something like "{{dc:post:h1}} - the content of the headline element.

Hi Ondrej,

Unfortunately, that is not possible.

Thanks

Well it would be a charm to use e.g the “Alternate Index Title” field for this.

There’s a “meta” key option though - so here would be a custom meta key necessary, right?

Hi Ondrej,

Yes, that you can do with a custom field and use the Meta Key in the Dynamic Content to get that value.

Thanks

unfortunately not with yoast meta fields… right?

Hi Ondrej,

You can get any meta values using the {{dc:post:meta key=“meta_field_name”}}. If the Yoast is saving the data in the meta field, you can use the name of the meta field to get the content.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.