To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #466 (closed defect: fixed)

Opened 19 months ago

Last modified 13 months ago

aBlogSlot & aBlogSingleSlot - Serial Slot IDs scoped to Area or Singleton

Reported by: johnnybenson Owned by: johnnyoffline
Priority: critical Milestone: 1.5
Component: apostropheBlogPlugin Version: 1.5
Keywords: blog, slots, validation, 1.5rc2 Cc: dordille, agilbert, johnnyoffline, rickybanister, , jake, boutell
Symfony version: 1.4

Description

This is continuously a problem and it affects XHTML validation tremendously, not to mention that it also can impact things like slideshows from functioning properly.

When there are multiple blog slots on a single page, pulling in posts can potentially pull in the same post.

The posts pulled in do not come with unique IDs to the given Area that they belong to.

This causes validation errors to fire where posts have the same ID.

If in AREA/SLOT scenarios, a slot name is appended to the id's this problem would be solved.

This is obviously not a problem for viewing posts in the engine

Change History

Changed 13 months ago by geoffd

  • keywords validation, 1.5rc2 added; validation removed
  • owner changed from dordille to johnnyoffline
  • version changed from trunk to 1.5
  • status changed from new to assigned
  • milestone changed from 1.4.2 to 1.5

Changed 13 months ago by johnnyoffline

  • status changed from assigned to closed
  • resolution set to fixed

I fixed this some time ago in 1.5.

To do this, I created a new option for slideshow called 'idSuffix'

If the option is set, the string gets appended to the ID of the slideshow.

In the case of the same blog post showing up in two separate blog slots, the idSuffix option is set in the normalView of the slot by using the unique id's for the individual blog slots

Slideshow

$id = ($options['idSuffix']) ? $id.'-'.$options['idSuffix']:$id;

Blog Slot

<?php $options['slideshowOptions']['idSuffix'] = 'aBlogSingleSlot-'.$permid.'-'.$slot.'-'.$aBlogItem->getId(); ?>
Note: See TracTickets for help on using tickets.