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.
Beautiful site, Oliver. This is a great example on how to use the language feature of Backlight 2.
But now I want to go back to Rome ![]()
Have a look at how I did this in Backlight: http://community.theturninggate.net/vie … hp?id=8429
For BL2, the call to page_match needs to be updated as follows:
if ( $this->page_match('/about') ) {
echo '....';
} elseif ( $this->page_match('/contact') ) {
echo '....';
} elseif ( $this->page_match('/galleries/') ) {
echo '....';
} elseif ( $this->page_match('/backlight/search') ) {
echo '....';
}
}And the example function ttg_main_top( $style, $path ) is now main_top() in BL2.
Could you please check again Daniel? Is it working good for you now?
Yeah, no more certificate error ![]()
When I go to your website, I get following warning "NET::ERR_CERT_AUTHORITY_INVALID". It looks like your certificate has expired.
To emulate what your CE4 design looks like, you can put a responsive grid into Main Copy:
<div class="grid_12">
<div class="col_9">
--> main column
</div>
<div class="col_3">
--> sidebar
</div>
</div>Rod has some tips&tricks regarding using the responsive grid with Backlight: https://ttg-tips-and-tricks.barbeephoto … backlight/
Thank you for letting us know.
It has been 7 years since I built my site. I remember nothing of how I did it, and am totally foreign to this process. I guess my question is
The process is now very different and much easier. So no worries!
If I created a new folder (backlight-2-test) on my old site, can I just drop the new backlight 2 files right in it and get to work? And how will I be able to access and test it as I proceed? Or, is there a better way?
Yes, create a directory and install the files in there:
old files
backlight-2-test/backlight
backlight-2-test/index.php
backlight-2-test/.htaccessTo start the main install, go to http://yoursite.com/backlight-2-test/backlight/install or the root of the new test site at http://yoursite.com/backlight-2-test once the site is alive.
Your approach makes sense. I wouldn't call it setup folder. It's more a test folder, but that's just semantics.
I would like to attach a screenshot of my FTP Client page showing my old website pages and the new folder, but that does not seem possible in this forum.
You have to put your image somewhere on your site, maybe in a temp directory, then link to it as follows
[img]http://mysite.com/temp/myimage.jpg[/img].Daniel Leu wrote:Oh, I forgot that with Backlight 1 there is no need to login in order to upgrade..... Installing the latest version should fix this issue.
Another trick, in Backlight 2, is to visit backlight/installer/ again. Doing so will fetch the latest core modules (e.g. admin, framework, designer, publisher, pangolin-* modules) and install them over the versions of the modules that are already there. That should help recover from any code issues within the Backlight admin that prevent logging into the Backlight admin in order to update modules. That of course assumes that the installer code doesn't have issues on that server.
Oh, that's a nifty trick! I like it!
This is a PHP code incompatibility. There is no need to change to PHP 5.6 to upgrade Backlight.
Oh, I forgot that with Backlight 1 there is no need to login in order to upgrade..... Installing the latest version should fix this issue.
Hi Bob, can you downgrade to a PHP version such as 5.6, upgrade to the latest Backlight version, and then again switch to PHP 7.1?
Indeed that's strange. I don't recall that I have encountered this problem when I switched API location. But at the same time, that's a long time ago.
Do you use the latest version of Lr Publisher? You can download it from backlight > admin > Backlight Modules. There is a link just above the table.
These are what needs to be suppressed:
<li class="menu-item"><a href="/portfolio/artifacts/">Artifacts</a></li>
I tried:#page__pallet__T1 li.menu-item { display: none; }but that doesn't do it either. I don't know enough about CSS to know if I can just switch it like that. It does feel like this is the road to go down though.
I used following code on your site to suppress all submenus on mobile:
#page__pallet__T1 ul.sub-menu {
display: none;
}Note that I used 'ul' while you used 'il'!
My implementation only exposes sub-menus of the current page: /galleries, /projects, /blog. So it is a bit fancier than just showing one level.
You can do this with CSS nowadays thanks to the body classes. I used jquery and php when I did this implementation for Bl1.
Daniel Leu wrote:How about just hiding the sub-menu on mobile?
#page__pallet__T1 ul.sub-menu { display: none; }Ooh. I like that option. As long as you're not using inactive items in the main menu this is a great option.
Depending on the hierarchy of the galleries, you could even expose the first sub-level. Check my site, https://danielleu.com/ vs https://danielleu.com/galleries/.
Well crap. Something even more awkward happens with that pallet content added with phplugins. It gets mixed up with the mobile menu. I'm guessing there's some html structure that needs to be used to avoid this.
Off to probe a normal page....
Your code looks strange:
<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
<div class="content clearfix">
<div id="page__pallet__T1" class="page__column page__pallet" data-position="T1">
<div class="content clearfix">I don't know why this div is repeated.
How about just hiding the sub-menu on mobile?
#page__pallet__T1 ul.sub-menu {
display: none;
}Using the navigation() hook, one can replace the menu. But this affects horizontal and mobile menus.
Thanks! That was a simple fix! Should even have figured that one out myself, anyhow.. thanks again!
![]()
I'm still missing something. How can I tell if phpplugins is actually doing anything at all?
function main_top () {
echo 'hello scott frey';
}A link to your page could be helpful too.
Do you have a two column layout selected?
Did you try to republish an album with 'update metadata only' selected?
Have a look at the album_top example in the phplugins sample file. You might need to download the installer again to get the latest version.
This shows you how you can replace the entire grid. Now you can write your own code to create the grid and add your custom button wherever you want to have it. I would assume that your code would be based on the current implementation in order to leverage the existing css and full page view.
You can insert an album-set in your page designer and select your galleries page as the album-set to insert.
Hi Cristian,
I would check with the cpanel in your host account how different domains/subdomains are handled. There should be a way to map the different domains you have to the respective root directories without this index.html/index.php hack.