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.
You are not logged in.
Pages: 1
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
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
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
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
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
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
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
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?
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
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
Pages: 1