On Tue, Aug 23, 2022 at 02:42:03PM -0500, 'Bill Tantzen' via DSpace Technical 
Support wrote:
> OK, here is some further info:  The correct ItemPageComponent is being
> selected correctly, but the UntypedItemComponent is the piece that is
> incorrect.
> 
> UntypedItemComponent is NOT in the custom theme directory, so maybe it is
> not themeable?
> 
> Has anybody fooled around with this?  My goal is to have differently themed
> item pages depending on a per-collection or per-community basis...
> Specifically, different metadata, and it looks like UntypedItemComponent is
> where this magic happens.

I ran into this as well.  One thing that is special is that
UntypedItemComponent is decorated '@listableObjectComponent' so it is
made theme-able in a different way.  Look for 'listableObject' in
https://wiki.lyrasis.org/display/DSDOC7x/User+Interface+Customization
for more information.

I wish I could just tell you what worked, but I spent days floundering
around in the code and the memories are blurred.

> On Tue, Aug 23, 2022 at 12:07 PM Bill Tantzen <tantz...@umn.edu> wrote:
> 
> > I'm experimenting with creating custom themes for a couple of communities
> > and collections.  I have a default theme with all the components in
> > 'custom', along with a theme for a specific community, and one for a
> > specific collection.  My theme config is like so:
> >
> > themes:
> >   - name: 'community_a'
> >     extends: 'default'
> >     handle: 'xxxxx/183663'
> >
> >   - name: 'collection_a'
> >     extends: 'default'
> >     handle: 'xxxxx/166578'
> >
> >   - name: 'default'
> >
> > In my 'community_a' theme, I have a community-page component
> > In my 'collection_a' theme, I have a collection-page component and an
> > item-page component.  The default theme has all themeable components.
> >
> > The problem I am having is that regardless of which community or
> > collection to which an item belongs, it is themed by the item-page
> > component in the 'collection_a' theme (the first one it encounters).
> >
> > My understanding was that items in collection_a are themed by the
> > component I override there, and that the default theme takes care of
> > everything else.
> >
> > Am I misunderstanding something, have I misconfigured something, or is
> > this a bug?  Anybody else out there experimenting with multiple themes?
> >
> > Thanks for any advice!
> > ~~Bill
> > --
> > Human wheels spin round and round
> > While the clock keeps the pace... -- John Mellencamp
> > ________________________________________________________________
> > Bill Tantzen    University of Minnesota Libraries
> > 612-626-9949 (U of M)    612-325-1777 (cell)
> >
> 
> 
> -- 
> Human wheels spin round and round
> While the clock keeps the pace... -- John Mellencamp
> ________________________________________________________________
> Bill Tantzen    University of Minnesota Libraries
> 612-626-9949 (U of M)    612-325-1777 (cell)
> 
> -- 
> All messages to this mailing list should adhere to the Code of Conduct: 
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> --- 
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dspace-tech+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dspace-tech/CADgrb7FjrmSz%3DjnzficmzXJUVMkkYSJ0kZP2HDFj06MZR258HQ%40mail.gmail.com.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/YwYM2iHG7GGcIXDr%40IUPUI.Edu.

Attachment: signature.asc
Description: PGP signature

Reply via email to