Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • midsomer Friend
    #151236

    Hi,

    I’m using FrontPage in headline_fp mode as a slide show. I would prefer the title and introtext to be overlaid on the article image like many other slide show modules do (Joomlaworks etc).

    I have looked into the headline_fp.php code and tried unsuccessfully to use the $image as a background in a div. How do I get the url path from $image to make this line work.

    <div style="background-image: url(<?php echo $image; ?>);">

    I can get the effect I want by hard coding with one sample image like this

    <div style="background-image: url(../../../images/resized/images/stories/akpc/akcross3_230_185.jpg');">

    TIA

    John Wesley Brett Moderator
    #344340

    I think I’m understanding what you are wanting to do…but may I make a suggestion.
    Instead of trying to overlay the headline and copy over an image…try recoding image’s CAPTION or TITLE ids.

    The problem you are going to run into trying to recode Headlines and intro text is what happens when there is no picture? Headlines and intro texts are NOT dependent on whether there is an image or not…unlike caption and title which cannot be used UNLESS there is an image.

    I think you’ll have better success.

    John.

    midsomer Friend
    #344355

    Thanks John,

    I’ll look into this alternative approach. I’ll still spinning my wheels on trying to get the variable value I want from helper.php. Both $imagesurl and $img from processImage look ideal but can’t figure how to pipe them over. Enrolling in PHP school 😉

    Cheers, M

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  midsomer 14 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum