ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE2, Matrix and FancyBox - how can I create a multi line title

July 31, 2012 6:23am

Subscribe [1]
  • #1 / Jul 31, 2012 6:23am

    defreeze

    37 posts

    Hi Guys,
    I think this is a jquery issue and I’m not brilliant at javascript. I need to add styling to a title field {arttitle} but it seems to break fancybox everytime I add in any < br > < strong > or < em > .

    I’ve got EE2 set up with Matrix from Pixel&Tonic;.
    Here’s what I’ve got running so far:
    http://www.marymarygallery.co.uk/dev2012/index.php/artists/nick-evans

    And this is my code:

    
    
    

    I *think* this should enable me to have a styled title field:
    http://jsfiddle.net/FWTZA/

    But I can’t seem to apply this without breaking fancybox altogether.
    Can anyone see what I’m going wrong?

    Would really appreciate any input!
    Many thanks
    Patricia

     

  • #2 / Jul 31, 2012 10:11am

    defreeze

    37 posts

    I should clarify - I would like to add breaks to my title so I can control how multi line titles wrap. At the moment I can only set the width of the space and the long title will wrap.

    I want to be able to display the information neatly over 3-4 lines.

  • #3 / Jul 31, 2012 11:56am

    defreeze

    37 posts

    Sorry guys,
    I was being an idiot!

    I had set my matrix field as multi line with auto break, which is what breaks fancybox it MUST be formatting “None” without the multiline ticked.

    Then just add

    
    

    where you need them. Unfortunately it doesn’t allow for bold or italics but this will work for now.

    Thanks Brandon from Pixel & Tonic for assisting me with the fix!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases