in progress Home Page Activity Inconsistency - Gallery

Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Now that jrGallery import has been changed, there is an interaction with the Activity module that probably needs to be looked into.

If you take a look at the top screen shot, you will see that the name of the commented photo is "chocliferoot", which might be the gallery of the image - it's certainly not the name of the image.

If you take a look at the page itself (second screen shot) you will see that the title of the image linked to is not "chocliferoot".

The Activity module needs to be updated to display the proper image name?
jpg
 •  542KB


updated by @claygordon: 02/23/15 11:15:36PM
brian
@brian
10 years ago
10,149 posts
Yeah this would just need an update on the activity template - we can check that out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
This is where my understanding of the modular breakdown starts to happen. The change is in a template in the Activity module?

In item_detail or item_list.
brian
@brian
10 years ago
10,149 posts
thechocolatelife:
This is where my understanding of the modular breakdown starts to happen. The change is in a template in the Activity module?

In item_detail or item_list.

Each module can provide an item_action.tpl file that the Activity module will use if found, so we just need to update the jrGallery/templates/item_action.tpl file.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
okay, ahhh ...

it's not in the Activity module, it's in the Galleries module. In this context, Activity calls Gallery to do something and is formatting the return.

There is no item_action in the Activity module.

I am going to guess that this is somewhere in the docs, but what are the respective divisions of labor between:

item_index
item_action
Item_detail
item_list
item_bundle
brian
@brian
10 years ago
10,149 posts
item_index - this is the "index" page for a module on a profile - i.e.

yoursite.com/profile_name/audio

item_action.tpl - this a small template that formats what the entry for the module looks like in the activity timeline

item_detail.tpl - this is the template that renders the "detail" for a specific item in a module - i.e.

yoursite.com/profile_name/audio/##/audio_title

"Item Detail Features" (such as comments, tags, share this, etc.) appear on item detail pages.

item_list.tpl - This is the small "row" template that is the default for each entry when creating a list using jrCore_list. So (typically) when you view the module index on a profile - i.e.

yoursite.com/profile_name/audio

the "item_index.tpl" file is called, which in turn contains a jrCore_list call to "list" the items of that module. the item_list.tpl template is what formats EACH entry in that list

item_bundle.tpl - this is an "override" template for the FoxyCart bundles module - when viewing a bundle (which is a listing of items that can contain items from different modules), this is used to format entries of this module type when displayed in a bundle list.

A LOT of Jamroom is setup to work like this - we're pretty strict about keeping modules separated (where it makes sense).

Let me know if that helps.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags