Page 1 of 1

Portfolio

Posted: Fri Jul 31, 2020 12:47 pm
by LRAM
Hi

on this website
https://lucy-racquel-and-me.com/

I need to create a sub page. a page only available from a link of an ordinary page, not visible immediatly
Is there a way to do that ?
thanks

Re: Portfolio

Posted: Fri Jul 31, 2020 1:11 pm
by Edi
Depending of the theme/navigation child pages are not shown. Otherwise you can exclude the child page with an if-condition using the slug.

Re: Portfolio

Posted: Sat Aug 01, 2020 9:51 am
by LRAM
Thank Edi

Unfortunately, I'm not good enough at coding for that kind of things
I'll try another way
haev a good day

Re: Portfolio

Posted: Sat Aug 01, 2020 1:07 pm
by Edi
What do you use in the navigation: default content or static content?

Re: Portfolio

Posted: Sat Aug 01, 2020 2:23 pm
by LRAM
I use both
the static for the menu
the defaut for the songs and their art cover
I want to add a page unvisible at first glane, only available with a link from a defaut page

Re: Portfolio

Posted: Sat Aug 01, 2020 2:27 pm
by Edi
LRAM wrote: Sat Aug 01, 2020 2:23 pm I use both
the static for the menu
the defaut for the songs and their art cover
I want to add a page unvisible at first glane, only available with a link from a defaut page
Can you please mail your theme.

Re: Portfolio

Posted: Sat Aug 01, 2020 3:21 pm
by LRAM
it's the standard portfolio theme
I only made change on the navbar.php to add my social media icon

Here it is
https://mega.nz/file/bZ4TkCyT#D3CUETNec ... 8iD3S1etVk

Re: Portfolio

Posted: Tue Aug 25, 2020 1:11 pm
by LRAM
Hi
any idea ?

Re: Portfolio

Posted: Thu Aug 27, 2020 12:02 am
by Edi
You can use in the file navbar.php in the directory /bl-themes/portfolio-master/php the following:

Code: Select all

	<?php
	    foreach ($staticContent as $staticPage) {

	    $url = $site->url().'/'.$staticPage->slug();

			if ($staticPage->slug() != "404" && $staticPage->permalink() == $url) {
				echo '<li>';
				echo '<a href="'.$staticPage->permalink().'">'.$staticPage->title().'</a>';
				echo '</li>';
			}
		}
	?>
instead of

Code: Select all

	<?php foreach ($staticContent as $staticPage): ?>
	<?php if ($staticPage->slug() != "404") { // hide 404 error page from menu ?>
	<li>
		<a href="<?php echo $staticPage->permalink() ?>"><?php echo $staticPage->title() ?></a>
	</li>
	<?php } ?>
	<?php endforeach ?>

Re: Portfolio

Posted: Thu Aug 27, 2020 10:11 am
by LRAM
Thank a lot Edi, I will try that