PSUEducationalEquity / plonetheme.eeq

Plone Diazo theme for Penn State Educational Equity website
0 stars 0 forks source link

Audience Specific Office Links #10

Open skleinfeldt opened 3 years ago

skleinfeldt commented 3 years ago

As a user I can see a set of important office links appropriate to various audiences prominently displayed on the office landing page. This may be in the horizontal blue office nav bar (#9), right justified, or it may be somewhere else on the landing page.

As a content editor I can define this set of links - how? This needs discussion.

paulrentschler commented 2 years ago

Here is our proposal for this: The office content object will contain a Collection with short name "audience-nav". That collection will in turn define all the items, and the order of the items, to be rendered in this right side, audience-specific navigation bar. Discuss as needed.

skleinfeldt commented 2 years ago

@paulrentschler Collections can only order things by date or alphabetically, not by an arbitrary, hand picked order. Will this be enough? Whereas if the audience-nav links were in a special Folder, you could drag and drop them into any order.

Will the audience-nav items all be on the site, or will it be a mix of internal and external links?

I wonder if this should just be a multi-line field on the Office objects?

paulrentschler commented 2 years ago

The items will "always" be internal folders or pages.

I am intrigued by the multi-line field on the Office object idea? What would that look like? Would it work like the related items field? How would ordering be handled?

skleinfeldt commented 2 years ago

@alecpm should chime in about whether this is feasible, but I was thinking about a multiline widget where you enter maybe just a list of URLs of the items and you put them in the order you want?

alecpm commented 2 years ago

I would think this would either be a related items type widget if these are site internal links (though you could include Link content which will redirect to external links), or a data grid field with rows of title/url pairs.

skleinfeldt commented 2 years ago

I like the related items idea, assuming they are not needed for anything else.

alecpm commented 2 years ago

I didn't mean the actual related items field (though I guess we could use that) I mean a new field that uses the same widget (which is confusingly called the "Related Items Widget").

skleinfeldt commented 2 years ago

Ah sorry, yes of course...

silviot commented 2 years ago

The office link bar does not show in case no right hand links are defined.

silviot commented 2 years ago

@paulrentschler The latest master has a change that should fix the problem with offices that have no right links specified.

paulrentschler commented 2 years ago

@silviot I deployed this around 4pm EST and it resolved the issue of the office name and left-side nav not showing up until right-side nav items were defined.