59 Posts
SemaphoreOxalis
5 years ago
5
Topic

Hi,

We need to add some intro text on search page. This text will change based on menu link. Seblod offer this possibility in backoffice with menu link => option => description but we need this function on frontend for our clients. The information is store in the menu table in JSON.

Any idea how to deal that properly ?

Or any idea on how to manage an intro text for these pages ?

Get a Book for SEBLOD
5 years ago
1
Level 1

Create a content type "Pages" like "Article" and add the field JForm Menu Item :

Create a search type "Pages search" :

Add your fields in the list with a template like seb_list


Create a module Seblod List on "Page search" :

Push it on a position before your search, with this parameters :

Make me a return if everything is ok

59 Posts
SemaphoreOxalis
5 years ago
0
Level 2

Thanks for your help,

Our main concerns are: 

  • when we add something in a position in seb_one it's repeated for each article because seb_one only an "item" template. So if we add a fields to a sposition it's repeated for each item, no ?
  • we have try to simply attached a module to a top-a position through the module manager it doesn't show => does the seblod templates position could really be used like a Jooma template position ?

Thanks

5 years ago
0
Level 1

No, you need 2 content types and 2 search type.

The page with your search "A" and items "A" list, don't touch it.

Add a new content type "B", juste to write your introduction, create a module seblod list with a new search "B" on this new content type "B". Add this module in your main template before your search "A" associate each item "B" with the field JFormMenuItem (inside the form).

59 Posts
SemaphoreOxalis
5 years ago
1
Level 1

Okay  ! Your proposition it to add something (a content type or custom module for example) in a "classic" module position... But the content "B" will be before the search title and outside the Seblod template.. We are looking for a way to add something inside the seb one template between title and search results.

If we really can't I suppose we will use the classic module position and "header" content type inside this position an a way to deal with the title in an other way like with the header title for example.

Thanks for your help.

5 years ago
0
Level 2

You can add a field Joomla Module inside your search, after the title and before the list.

Get a VIP membership