Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-02-15 01:54:43

angel
Member
From: Israel
Registered: 2013-06-18
Posts: 45
Website

Image not loading in primary content

I have included a page image in my primary content.


I checked the template_index.php file and it does contain the following;


<!-- primary content -->
<div id="primary-content" class="grid_12 collapse clearfix">

<?php echo $album->hook_preContentBlock(); ?>
<?php if ($album->placePageCopyAbove()) {
    echo $album->getPageCopy();
} ?><?php if ($album->replacePageCopy()) {
    echo $album->getPageCopy();
} else { ?>
<img class="the-block-image alignleft" src="photos/israel-wedding-photographer-arnold-szmerling-celebration-artist-melbourne-events-photographer-israel-wedding-jewish.jpg" alt="" width="750" height="499" />




<?php } ?><?php if ($album->placePageCopyBelow()) {
    echo $album->getPageCopy();
} ?>


</div>
<!-- /primary content -->


However the following link when looking at the page source does not include the above code nor show the image as requested:

http://asip.co/israel-wedding-photographer/

I have exported the page using publisher and selected an image with the same name.

http://asip.co/israel-wedding-photograp … jewish.jpg which is living on the server.


What's happening?

Offline

#2 2016-02-15 02:16:18

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Image not loading in primary content

if you want the text you've included in the template to appear in the album, you need to specify that in the Page Content tab of the Edit/Create Album dialog. there are buttons that allow you to include the template copy.

Also, the album will be looking for the photo in the album's own photos/ folder. So if that image is not included in the album itself, it will not appear on the page.

the template is password protected so I can't see what's going on there.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2016-02-15 02:31:13

angel
Member
From: Israel
Registered: 2013-06-18
Posts: 45
Website

Re: Image not loading in primary content

The text I included was to show I uploaded the template correctly that's all. I don't want to see the jargon published on my page.

I however would expect to see this "text" when viewing the source and I don't why.

It appears the page is not even looking for the image. why?

So the result is an image to the left of the block text.

Here ia an example

https://asip.co/wedding-gallery/sarah-a … jerusalem/

Last edited by angel (2016-02-15 02:36:57)

Offline

#4 2016-02-15 02:33:07

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Image not loading in primary content

let me ask this. How are you placing the text on this page? It is text included in the template or is it text you've entered in the Album's Page Content area?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2016-02-15 03:14:53

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Image not loading in primary content

can you provide the password credentials to the template?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2016-02-15 03:17:43

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Image not loading in primary content

The text I included was to show I uploaded the template correctly that's all. I don't want to see the jargon published on my page.

I however would expect to see this "text" when viewing the source and I don't why.

I'm not quite understanding all this. By "jargon" do you mean the text included with the template? If you don't want it seen on the page, and it isn't appearing on the page, then it would also not appear in the page's source code. (the source code you can view by right-clicking on the page and choosing "view source", not the exported template_index.php files)


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2016-02-15 05:05:32

angel
Member
From: Israel
Registered: 2013-06-18
Posts: 45
Website

Re: Image not loading in primary content

OK I'll try and answer your questions;

The text in The Block content is being entered in the Album's Page Content area NOT in the template. In the template I made under the Page Image section select to assign an image from the filmstrip to appear in The Block. I specified the Location as Primary Content and Float left. After uploading the template I made sure the code appears and it does as originally posted and I'll paste it here again;

<!-- primary content -->
<div id="primary-content" class="grid_12 collapse clearfix">
<?php echo $album->hook_preContentBlock(); ?>
<?php if ($album->placePageCopyAbove()) {
    echo $album->getPageCopy();
} ?><?php if ($album->replacePageCopy()) {
    echo $album->getPageCopy();
} else { ?>
<img class="the-block-image alignleft" src="photos/israel-wedding-photographer-arnold-szmerling-celebration-artist-melbourne-events-photographer-israel-wedding-jewish.jpg" alt="" width="750" height="499" />



<?php } ?><?php if ($album->placePageCopyBelow()) {
    echo $album->getPageCopy();
} ?>

</div>
<!-- /primary content -->


Next I select the image I want and drag it to the Album before publishing it. The image is then uploaded when publishing.

When I view the source code of the published page it doesn't have the same code in the template (referring to any image in The Block content.)

What email would you like me to send you password credentials? Are you referring to TTG module?

Offline

#8 2016-02-15 05:17:02

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Image not loading in primary content

When I view the source code of the published page it doesn't have the same code in the template (referring to any image in The Block content.)

And it wouldn't. That code is PHP. The source code you see in the browser is rendered html.

When you created the album, did you choose to include the text from the template using the Page Copy placement options button?

page-copy-options.jpg

What email would you like me to send you password credentials? Are you referring to TTG module?

I meant the credentials to see the password protected template here: http://asip.co/ttg-be/templates/gallery/Stage-Wistia/
you can either PM or send via email using the links to the left


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#9 2016-02-15 05:26:52

angel
Member
From: Israel
Registered: 2013-06-18
Posts: 45
Website

Re: Image not loading in primary content

Your question triggered the solution.

All working, thank you!

Offline

#10 2016-02-15 05:46:58

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Image not loading in primary content

great!


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB