headline disappeared on admissions site

2 views
Skip to first unread message

Brian Jones

unread,
Aug 19, 2011, 3:51:43 PM8/19/11
to Reason Discussion
A headline using the publications module has disappeared off of the
admissions home page. As best as I can determine this occurred when
moving from 4.0b8 to 4.0b9. Commenting out line 326:
$publications = $this-
>_filter_pubs_with_improper_page_types($publications);
in reason_4.0/lib/core/minisite_templates/modules/publication/
module.php restores the headline. It looks like the function
_filter_pubs_with_improper_page_types() is a recent addition to the
file.

The admissions minisite has a publication called "highlights" that has
one post per page, is not issue-based, has no sections, and borrows
most of its news posts from another minisite.

The "highlights" publication is placed on the admissions home page
using the reason interface and is displayed using the following
snippet from page_types_local:

'sidebar' => array( // Highlights
'module' => 'publication',
'related_mode' => 'true',
'related_title' => '',
'related_order' => 'random',
'max_num_items' => 1,
'markup_generator_info' => array(
'list_item' => array (
'classname' =>
'HeadlineListItemMarkupGenerator',
'filename' => 'minisite_templates/
modules/publication/list_item_markup_generators/
admissions_headline.php'
),
),
),


Brian

Nathan White

unread,
Aug 19, 2011, 4:10:00 PM8/19/11
to reason-d...@googlegroups.com
Hi Brian -

I'm going to look into this a bit. I think what that function is supposed to do it to make sure that you are only showing the links to the stories if the publication is placed on some page that actually runs the publication module in normal mode. Otherwise, those links would have no destination. I'm guessing this is the Luther spotlight on the admissions front page, yes? Does that page you arrive on when you click "read more" run the publication module itself, or did you create a custom module that extends the publication module to display the spotlight archives (http://www.luther.edu/spotlightarchives/?story_id=245887)?

Let me know -

thx,

Nate


--
You received this message because you are subscribed to the Google Groups "Reason Discussion" group.
To post to this group, send email to reason-d...@googlegroups.com.
To unsubscribe from this group, send email to reason-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reason-discussion?hl=en.


Brian Jones

unread,
Aug 22, 2011, 5:50:25 PM8/22/11
to Reason Discussion
Nate,

Actually the spotlights are working fine in all versions of Reason.
Unlike the headline, the spotlight is not explicitly placed on the
admissions home page using the reason admin console rather is included
using related_publication_unique_names. The spotlight_archives
publication is on a different minisite, which has a page that runs the
publication module; it does not have a custom module but does have a
custom markup generator.

'pre_sidebar' => array( // Spotlights
'module' => 'publication',
'related_publication_unique_names' =>
array( 'spotlight_archives' ),
'related_mode' => 'true',
'related_title' => '',
'related_order' => 'random',
'max_num_items' => 1,
'markup_generator_info' => array(
'list_item' => array (
'classname' =>
'SpotlightListItemMarkupGenerator',
'filename' => 'minisite_templates/
modules/publication/list_item_markup_generators/
admissions_spotlight.php'
),
),
),

Back to headlines publication. There is no page of type publication on
the admissions site so that could explain why it's not showing on the
admissions home page. I'll try to create a publication page type.

Brian
Reply all
Reply to author
Forward
0 new messages