1

I have several channels of content and wish to flag selected entries to display on a section in the homepage. I know Joomla has this built into each article, and wondered how I would achieve this with EE?

1

Create a channel field that marks the entry as being eligible for "featured" (a simple Yes/No dropdown should do). Then in your template, simply grab the entries with a channel entries tag that have the featured field set to Yes. You can also use additional parameters such as orderby="random" and placing limits to how many items get returned (and set dynamic="no" as well).

| improve this answer | |
2

Another option would be to use the status parameter on the channel entries tag. If you were to add a status of featured you could then do something along the lines of

{exp:channen:entries channel="channrl1|channel2" status="featured"}

On the homepage. You would just need to make sure that you declare both open and featured on any entry tags you wanted both types to appear in because the entry tag only displays open by default.

{exp:channen:entries channel="channel1" status="open|featured"}

Depending on the amount of entires that you have in your EE install using the search parameter (as some of the other commenters have suggested) on the channel entries tag can cause a performance issue.

| improve this answer | |
1

You can make entries sticky to make the stick on top.

And follow answers in this thread to display only sticky entries on your homepage (or whereever)

While this is native, I would personally just add a custom checkbox field 'display_on_homepage' and fetch entries with

{exp:channel:entries search:display_on_homepage="y"}

| improve this answer | |
  • Hi Yuri, a question: if you're dealing with multiple channels, would the checkbox field have to have an individual name for each channel (if each channel has its own fields)? – edward May 3 '16 at 3:17
  • Well, I usually follow approach "one fieldset for all channel" and hide the fields I don't need using Publosh Layouts. But in case you have multiple fieldsets, the approach I desribed in my answer will probably not work – Yuri Salimovskiy May 3 '16 at 18:07
  • Ah, got it! Thanks for the clarification! I've heard of people doing one fieldset, but I've never done that myself. – edward May 3 '16 at 18:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.