Question about pages

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
FireAdmin
Regular
Posts: 21
Joined: Fri Feb 07, 2014 7:00 pm

Question about pages

Post by FireAdmin » Wed Feb 12, 2014 5:06 pm

Hi, im very new here that's why so many stupid questions... sorry!! :oops:

Now i need to open others pages sent from the Serendipity Links menu into the main page, but in the Admin "Manage Styles" every links declared is opened into the new page in the browser as a "_blank" and not into the blog page ... how can i solve this?

Thanks a lot :)

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Question about pages

Post by Timbalu » Wed Feb 12, 2014 5:42 pm

Do you mean your frontends nav = navigation bar links?

Become a Producer Link #2 Link #3 Link #4 Link #5

They all open in _self, not in _blank, since not having declared any target:

Code: Select all

<ul class="clearfix"><li><a href="/internal_pages/collaborations.php">Become a Producer</a></li><li><a href="#">Link #2</a></li><li><a href="#">Link #3</a></li><li><a href="#">Link #4</a></li><li><a href="#">Link #5</a></li></ul>
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

FireAdmin
Regular
Posts: 21
Joined: Fri Feb 07, 2014 7:00 pm

Re: Question about pages

Post by FireAdmin » Wed Feb 12, 2014 6:12 pm

So do i have to write this line of code?
<ul class="clearfix"><li><a href="/internal_pages/collaborations.php">Become a Producer</a></li>

But in wich file?

At the moment i edited links via admin panel and it doesnt works

User avatar
yellowled
Regular
Posts: 7083
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Question about pages

Post by yellowled » Wed Feb 12, 2014 6:15 pm

FireAdmin wrote:At the moment i edited links via admin panel and it doesnt works
You don't have to write seperate code for this. 2k11 uses the new s9y core navigation, so you can just set the number of links and add the link text and URL in Manage Styles. Don't forget to hit Save there, though.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

FireAdmin
Regular
Posts: 21
Joined: Fri Feb 07, 2014 7:00 pm

Re: Question about pages

Post by FireAdmin » Wed Feb 12, 2014 7:07 pm

I puted for few time the link in many ways:

pagename.php
#pagename.php
http://...pagename.php

but the page its opened to the same page but as a main page and not inside the blogsite :roll:

How should i write the link?

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Question about pages

Post by Timbalu » Wed Feb 12, 2014 7:20 pm

I dont really get what your problem is....

If you put "/internal_pages/collaborations.php" to the first nav link field and save that, it will appear as a first NAV-BAR-TAB in the frontpage as

Code: Select all

<a href="/internal_pages/collaborations.php">Become a Producer</a>
This opens in "_self", not in "_new" nor "_blank".
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

FireAdmin
Regular
Posts: 21
Joined: Fri Feb 07, 2014 7:00 pm

Re: Question about pages

Post by FireAdmin » Wed Feb 12, 2014 7:30 pm

Doesnt works!

this is the link to a exmaple page in my site:
http://fireofdarkness.altervista.org/in ... ations.php

and this is what i written in Manage Styles:
"/internal_pages/collaborations.php", i tried in several ways.

What i wanna do is just to create other site pages over the blog, but it appears to be hard in here...

User avatar
yellowled
Regular
Posts: 7083
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Question about pages

Post by yellowled » Wed Feb 12, 2014 7:34 pm

Not sure I understand you correctly, but it sounds as if you're assuming it will work like this:

– put a link to a site which was not created using s9y in a nav bar link
– click that link
– it opens said sites content in the content area of the blog

If that's what you assumed, it does not work that way.

You can, however, use the nav bar to link to any page created by s9y or not (internal vs external link), but of course external links will not be “imported” into the blog's content area.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

FireAdmin
Regular
Posts: 21
Joined: Fri Feb 07, 2014 7:00 pm

Re: Question about pages

Post by FireAdmin » Wed Feb 12, 2014 7:41 pm

Ok so, how can i open any other page of the same site in the blog area?
Because not only the blog will represent my site so i have to create other pages or menubar link has no sense.

What can i do?
here how actually my site works:

http://fireofdarkness.altervista.org/index.php

pls try to click on the link ("Become a producer") and look what happens, its not properly.

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Question about pages

Post by Timbalu » Wed Feb 12, 2014 7:55 pm

YL is right. I think I got it now.
The page you linked is opened in the same browser-page! (that is what you have to mean when talking about '_self', '_blank' is openng in a new browser tab, etc).
But you want the content of your totally independent PHP file to open like a blog entry inside the blogs header/sidebar/content page, right?

First, this is not that easy. You have to embed/include the Serendipity framework in your php file output, to fake this. Search for embedding in the docs, like http://www.s9y.org/55.html .

To start with, I would install the staticpages event plugin. Then you can generate static pages, eg a "/pages/mystaticpage.html" with some static content and even some more options. This link can now be easily linked in your template navbar and opens in your templates content area.

Now such an static page could include a dynamic php file by some html/js magic.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Question about pages

Post by Timbalu » Wed Feb 12, 2014 8:04 pm

What you possibly want to have and use is:
External PHP Application - serendipity_event_externalphp EVENT PLUGIN
Shows an external PHP application inside your blog with your blogs design and all formattings. USE WITH CARE, THIS PLUGIN HAS SECURITY IMPLICATIONS AS IT INCLUDES ANY GENERIC PHP FILE! YOU CAN ONLY USE THIS PLUGIN AS ADMIN!
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

FireAdmin
Regular
Posts: 21
Joined: Fri Feb 07, 2014 7:00 pm

Re: Question about pages

Post by FireAdmin » Wed Feb 12, 2014 8:20 pm

im trying Static Pages but there is no way to declare some pages or links!!

FireAdmin
Regular
Posts: 21
Joined: Fri Feb 07, 2014 7:00 pm

Re: Question about pages

Post by FireAdmin » Wed Feb 12, 2014 9:29 pm

So, i cant find any way in Static Pages plugin to declare links to external html or php...

Anyway, so how can i open a page inside Serendipity blog area? What is the menu?

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Question about pages

Post by Timbalu » Thu Feb 13, 2014 9:23 am

Well, I already said, that you will need some html/javascript/iframe magic to do this in staticpages. http://stackoverflow.com/questions/8988 ... -html-file

But the better approach is to use externalphp, which enables you to set a permalink (to use for the nav), an url name (which is needed for subpage GET) and the link to the external php file to fetch its output.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

FireAdmin
Regular
Posts: 21
Joined: Fri Feb 07, 2014 7:00 pm

Re: Question about pages

Post by FireAdmin » Thu Feb 13, 2014 9:55 am

oh yes i see externalphp, so step by step:

- i have to install externalphp plug in sidebar.
- permalink: put the link to my php page.
- url name: ??

Post Reply