Bug 8622 - Custom id in custom block plugin
Custom id in custom block plugin
Status: NEW
Product: OJS
Classification: Unclassified
Component: Plug-ins
2.4.x
All All
: P3 trivial
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-18 22:53 PDT by Andrea Marchitelli
Modified: 2014-03-19 12:42 PDT (History)
1 user (show)

See Also:
Version Reported In:
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Marchitelli 2014-03-18 22:53:51 PDT
If you are using more than one block only, every custom block has an id="custom" that give an HTML error.
Is it possibile to change id to classes or (maybe better) use the name of the blok to generate an id like id="custom blockname"?
Comment 1 Alec Smecher 2014-03-19 12:42:08 PDT
Andrea, the current codebase doesn't have an ID clash -- I suspect you're using something from before this change was committed...

https://github.com/pkp/ojs/commit/107420a3b06150a803026102c4e6f3f968b64441

However, if you're looking to style blocks specifically, then this change won't provide a unique CSS selector. In that case we should probably add the block ID (a numeric value) as a suffix to an ID. Would that suit you?