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 2015-03-25 22:39:33

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Sharing templates

I created a CE4 Pages templates and now, I want to share it. So, in Text Wrangler, I copied all the lines starting at

styleData = {

on the designed template and pasted these lines into the new, blank template at the appropriate place. Save and close.
Restarting Lightroom, the new template ...isn't there! For some reason, it does not show up in the template list. Does the fact that the usual icon (a kind of page with a corner curved) that usually indicates a template changed to something else?

Offline

#2 2015-03-25 22:48:32

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

Re: Sharing templates

did you first create the new template in the Template Browser and then open that and replace the styleData?

did you use a plain text editor?


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 2015-03-25 22:50:06

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

By the way, the "new" template IS in the web templates folder. But Lightroom does not recognize it. I can't even use the "import" button to load it: I get the error message ...

incorrect model

Offline

#4 2015-03-25 22:52:33

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

Yes Rod, I created the both templates with Lightroom: one with all the settings and a "target" one that is blank. Then I used Text Wrangler to do the copy/paste operation.
Somehow, the file type seems to change enough so that Lightroom rejects it.

Offline

#5 2015-03-25 22:56:05

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

Re: Sharing templates

if you want to post a link to your template I'll take a look to see if I can see anything obvious


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 2015-03-25 22:58:03

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

So I do have all the settings in a "template" file, but it's not recognized by Lightroom.

Offline

#7 2015-03-25 23:23:34

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

Re: Sharing templates

the only thing I can suggest is to try it again in case something was missed. I can't tell much without seeing it so if you want to put the .lrtemplate file online and provide a link to it I'll see if I can spot any problems with it.


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

Offline

#8 2015-03-26 00:43:29

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

I don't know how to submit files as attachments. Copying all the code exeeds the character limit for this post.

Offline

#9 2015-03-26 01:04:51

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

Re: Sharing templates

just upload the .lrtemplate file to your server and post the url


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

Offline

#10 2015-03-26 01:49:19

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

The "target" template is here: http://pideja.ca/CE4Pages-Fr.lrtemplate
The "source template is here: http://pideja.ca/SOURCE_CE4Pages-fr.lrtemplate

Offline

#11 2015-03-26 01:56:36

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

This "source" template will not load or be recognized by Lightroom, even with the name

CE4Pages-fr.lrtemplate

I think the mistake may stem from a modification I wanted to implement to the template. I was having trouble aligning the contact reply boxes with the text and, after multiple tries, I resorted to create a contact page (only) on another "new" template. Saved in Lightroom. Close the app and edit the code of the original template with that part of the new template that contained the contact settings with a text editor (SMULTRON or TEXT WRANGLER). Evidently, this did not go too well.

Offline

#12 2015-03-26 02:27:25

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

Re: Sharing templates

I don't know. Since this isn't just a straightforward copying of template settings, I don't think I can be of much help.

But why not just make any changes with custom css?


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

Offline

#13 2015-03-26 04:05:57

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

Well, I resolved to start over...but, when I finally get this template right. I'm worried that doing the copy/paste routine might end up with the same mistake! I've been at this rebuild all day and will still be at it tomorrow.
Plus, I still have those formatting problems for the Contact page that where at the origin of all this mess.

Offline

#14 2015-03-26 04:28:57

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

Re: Sharing templates

If you get the Contact Page layout you like, why not just save the template and just apply it to another web collection?
Then just change whatever other design elements need to be changed for the new Pages set up and save that as a new template.

No need to do the copy paste routine if you're just creating new Pages exports.


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

Offline

#15 2015-03-26 05:05:55

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

This is the first upgrade to CE4 so, I can't import any previously designed page because they where all CE3!

Offline

#16 2015-03-26 05:20:11

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

Re: Sharing templates

I assumed from your original post that you were wanting to design in CE4 Pages and save that template and then wanting to share that with other CE4 engines.

But when you mentioned the Contact Page I figured you were making a template for other Pages exports you needed to create.

Going from CE3 to CE4 means you have to start from scratch anyway, so I guess I'm unclear as to what you're trying to do.


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

Offline

#17 2015-03-26 22:33:58

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

I've already started re-building the site in CE4.
For the record : I had started and was well advanced when, getting to the contact page, I had this troublem with aligning the reply boxes relative to an image I wanted to put on the page. Having problems getting it as I wanted, I had this crazy idea to build another contact page in a different CE4 Pages template, sample that part of the code that concerned the contact page from the lrtemplate file and paste it onto the contact page I was having problems with. I guess you can't do that. At least the way I tried it because from then on, Lightroom did not recognize the amended lrtemplate file.
So, I'm re-building the site.

Offline

#18 2015-03-28 03:07:27

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

I put up the re-built site here: lucnadeau.ca It's still in progress so a lot of the links, formatting and content has to be added and/or tweaked.
Once on the first page, use the "FRANÇAIS" link. The "ENGLISH" link is dead for now.

Question : how can I control the position of an image on a page? The "EXPOSITIONS" tab leads to a page where I tried to line up the image to the right of the list-text. However, I find it's too high. Is this a case for CSS?

Thanks for taking the time to look at this.

Offline

#19 2015-03-28 09:07:27

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

Re: Sharing templates

you could add some margin for the image on that page via custom css if you wish.
With those pages it's really easy to target the image on just that page as each Pages page has it's own ID

In this case, using

#info-page img {
   margin-top: 4px;
}

should come close


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

Offline

#20 2015-03-28 21:08:12

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

I must be doing something wrong :

-I copied the code suggested in the Custom.Css file to no avail. Since the image is part of the block, does this hinder the process?

- same for those few lines at the top of the CSS file. Supposed to display a background image throughout the site. No such luck.
  I already used this effect, no problem, on another site. Looking for the mistake.

Thanks for the help with this. I should be able to find my mistake, hopefully.

Offline

#21 2015-03-28 21:40:13

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

I'm sure this ain't quite legit :
I went directly to the info.php file and found where the image was discribed. I then added these <style> lines

<img class="the-block-image alignright" src="photos/expo.jpg" alt="7,5 x 12,5 cm, eau-forte" width="616" height="1024" />
<style>
img {
    position: absolute;
    right: 390px;
top: 100px;

}
</style>

I hope this wont cause trouble down the line but until I get to write these lines in the CSS file, this works for now.

What do you think?

Last edited by pideja (2015-03-28 21:41:06)

Offline

#22 2015-03-28 21:53:47

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

Re: Sharing templates

your positioning is subject to the size of the browser window. On my monitor, the image is covering some of the text and does not align with the top of the text. I wouldn't recommend doing it the way you are.

as to the custom css, I can see that a custom.css file is being applied. Right now all it's trying to do is place a background image on the page. There's no code to add top-margin to an image on the info-page.
The reason it probably didn't work before is that you likely added it after the background image css, which is broken and so nothing after that will work anyway.

the problem with the background image is that the css code is formatted incorrectly :

body background-attachment: scroll;
    background-image: url(/phplugins/images/background-image.jpg);
    background-position: center center;
    
    }

try:

body {
        background-attachment: scroll;
    background-image: url(/phplugins/images/background-image.jpg);
    background-position: center center;
    
    }

then add the css for adding margin-top to the image


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

Offline

#23 2015-03-29 03:12:25

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

Got the background to work. Thank you.
I placed the background instructions into the Custom CSS file in the "portal" page because the effect should be site-wide.
I then placed the image positioning instructions within the "Fr/plugins/custom css" folder because the effect should affect only the info page.
I also tried placing all instructions in either of the CSS folders : Only the background functions when in the "portal" css folder.

Must be a typo or syntax error again...

Offline

#24 2015-03-29 03:47:41

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Sharing templates

Meanwhile, trying to format the "galleries" section...I can't find where one formats the thumbnail albums and the thumnails to display on the "galleries" page. I'm shooting for four galleries, iconic style.
I see an aspect ratio slider (I set it to 1/3)for the thumbnail albums.
But no album height and/or width! So, I'm stuck with 600px high  x 200px wide albums.
I've looked everywhere...can't find it.
The text appearing on the album overlay is black...no color selection apparent.

Last edited by pideja (2015-03-29 03:49:50)

Offline

#25 2015-03-29 13:29:11

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

Re: Sharing templates

Well, from what I remember from looking at the page source code, the custom css file comes from your /phplugins/css/ folder. There was no fr/ in the path
(I can't look no as I'm on my iPad.
So your custom CSS for the fr site was coming from the phplugins folder in the root of the domain.


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