Staticpages

Creating and modifying plugins.
jensolav
Regular
Posts: 8
Joined: Mon Oct 17, 2005 3:03 pm

Staticpages

Post by jensolav »

Hi

I'm trying to use staicpages. The installation is oK every things seems to work, and I have made my fisrt page.

The question is now - How do I access the page from the frontpage of serendipity?

Is it posible to link via a html nugget.

Do I have to create a new directory for the pages?

Kind regards

jensoalv
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Staticpages

Post by garvinhicking »

Yes, you can link to it via HTML nugget. But you can also use the sidebar static page plugin, that lists your static pages!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pippo

Post by pippo »

hi,

like jensoalv i did install the plug-in and it works. the static sites are shown on the frontpage.

is there any chance, i can use the content of a web page as the content of one of my static sites inside the serendipity site? what do i have to fill in for permalink when creating a new static site?

right now the link on the frontpage of the static site leads me to a page outside the serendipity site.

thanxx a lot for yor help in advance.

pippo
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Pipo: You could use the wrapurl plugin for that, or even the externalphp plugin. But showing external content is not the idea of the staticpages plugin.

Hope I understood you correctly.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pippo
Posts: 2
Joined: Wed Dec 07, 2005 5:24 pm

Post by pippo »

hi garvin,

thanxx for your help. i installed the wrapurl plugin. here's what i'd like to do: there are lots of pages already designed with text and pix. instead of rewriting them i would like them to be in the layout as static pages. so i can still see the navigation on the right side and the title on top.

now that i installed the plug-in, how do i show the links on the side navigation?

i could live with showing the links in seperate windows with the link list, if you think that my idea is not the right way to do it.

regards

pippo
BabeSpot
Regular
Posts: 30
Joined: Sun Dec 04, 2005 8:42 pm

Post by BabeSpot »

pippo wrote:hi garvin,

thanxx for your help. i installed the wrapurl plugin. here's what i'd like to do: there are lots of pages already designed with text and pix. instead of rewriting them i would like them to be in the layout as static pages. so i can still see the navigation on the right side and the title on top.

now that i installed the plug-in, how do i show the links on the side navigation?

i could live with showing the links in seperate windows with the link list, if you think that my idea is not the right way to do it.

regards

pippo
* Go to your wrap URL plugin
* give it a headline wich shows up above your page
* copy the content of the permalink field (you can rename the end of it in somethink like "/staticpage1.html") to one of your sidebarnuggets where you make a link that points to that wrapped static page
* The field URL shorthand name is for better search back between your plugins
* in the field URL you put the real URL to your static page (where it now is located)
* height is the height of your staticpage ( so if you don't want the iframe scrollbar at the right, make it just as high as the height of the actual site)

Hope I helped a little bit

Grtz
My Serendipity: BabeSpot !
pippo
Posts: 2
Joined: Wed Dec 07, 2005 5:24 pm

Post by pippo »

hi,

it worked, thanxalot!

pippo
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

I upgraded to the new Static pages, and anytime I try to save a new static page, it says:
ERROR:

INSERT INTO serendipity_staticpages (headline,permalink,pagetitle,articletype,publishstatus,language,content,markup,articleformat,articleformattitle,authorid,parent_id,show_childpages,pre_content,pass,filename,is_startpage,shownavi,showonnavi,timestamp,pageorder) values ('test', '/pages/test.html', 'test', '1', '1', 'en', 'test', '1', '1', 'Affiliate Marketing Journal :: ', '1', '0', '1', '', '', 'none.html', '0', '1', '1', '1134415557', '6')

/ Unknown column 'articletype' in 'field list'
I installed via Spartacus, and it seemed to install without a single hitch.
falk
Regular
Posts: 512
Joined: Tue Sep 27, 2005 10:16 am
Location: DD
Contact:

Post by falk »

There is a tablerow named articletype after a new installation missing. This is a bug. I fix it this evening CET.

Please execute this sql if you can (replace {$serendipity['dbPrefix']} with your s9y db prefix):

ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN articletype int(4) default '0'

Thank you for reporting this bug.
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

I ran your sql and updated to the 12/19 version, but am still getting:
ERROR:

INSERT INTO serendipity_staticpages (headline,permalink,pagetitle,articletype,publishstatus,language,content,markup,articleformat,articleformattitle,authorid,parent_id,show_childpages,pre_content,pass,filename,is_startpage,shownavi,showonnavi,timestamp,pageorder) values ('', '/pages/pagetitle.html', 'pagetitle', '1', '1', 'en', 'test', '1', '1', 'Affiliate Marketing Journal :: ', '1', '0', '1', '', '', 'none.html', '0', '1', '1', '1135061472', '6')

/ Unknown column 'pageorder' in 'field list'
falk
Regular
Posts: 512
Joined: Tue Sep 27, 2005 10:16 am
Location: DD
Contact:

Post by falk »

What Version you can see in the plugins menu for staticpages?

Can you give me a table dump of all from staticpages created tables (without data), please?

Have you downloaded staticpages from spartacus or cvs?
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

NOTE: since I upgraded, I'm having permissions problems with my server on the plugins and templates folders, as happens with Spartacus on certain hosts. Dunno if that could be causing the problems. I've got a note into my host, so hopefully that'll be taken care of soon.
falk wrote:What Version you can see in the plugins menu for staticpages?
It says 3.19.
Can you give me a table dump of all from staticpages created tables (without data), please?
I'm still learning about databases and dumps and so on, so I'm not sure if this is what you need:
-- phpMyAdmin SQL Dump
-- version 2.6.4-pl2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 20, 2005 at 01:59 PM
-- Server version: 4.1.13
-- PHP Version: 4.3.11
--
-- Database: `bluemus_s9`
--

-- --------------------------------------------------------

--
-- Table structure for table `serendipity_staticpages`
--

CREATE TABLE `serendipity_staticpages` (
`id` int(11) NOT NULL auto_increment,
`parent_id` int(11) default '0',
`articleformattitle` varchar(255) NOT NULL default '',
`articleformat` int(1) default '1',
`markup` int(1) default '1',
`pagetitle` varchar(255) NOT NULL default '',
`permalink` varchar(255) NOT NULL default '',
`content` text,
`headline` varchar(255) NOT NULL default '',
`filename` varchar(255) NOT NULL default '',
`pass` varchar(255) NOT NULL default '',
`timestamp` int(10) unsigned default NULL,
`authorid` int(11) default '0',
`show_childpages` int(1) NOT NULL default '0',
`pre_content` text,
`is_startpage` int(1) default '0',
`shownavi` int(4) default '1',
`showonnavi` int(4) default '1',
`publishstatus` int(4) default '1',
`language` varchar(10) default '',
`articletype` int(4) default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;

-- --------------------------------------------------------

--
-- Table structure for table `serendipity_staticpages_types`
--

CREATE TABLE `serendipity_staticpages_types` (
`id` int(11) NOT NULL auto_increment,
`description` varchar(100) NOT NULL default '',
`template` varchar(255) NOT NULL default '',
`image` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
If that's not it, just give me a bit more instruction and I'll get it for you. :)
Have you downloaded staticpages from spartacus or cvs?
Spartacus.[/quote]
falk
Regular
Posts: 512
Joined: Tue Sep 27, 2005 10:16 am
Location: DD
Contact:

Post by falk »

Thank you, this was right.

I don't know why there is the error. I must have a look in a free time in the Plugin. In the moment you must execute this SQL:

ALTER TABLE {$serendipity['dbPrefix']}staticpages ADD COLUMN pageorder int(4) default '0'
Hathor
Regular
Posts: 118
Joined: Tue Mar 22, 2005 11:48 pm

Post by Hathor »

YAY!

Thanks - now it's working. Keep in mind, it COULD be that there's nothing wrong with the plug-in, and the problem was due to the permissions issues I was having with Spartacus (which, until yesterday, I didn't really understand or know how to fix).

Wonder if anyone else has had similar problems?

Again, thanks for the sql's!
falk
Regular
Posts: 512
Joined: Tue Sep 27, 2005 10:16 am
Location: DD
Contact:

Post by falk »

You're welcome.
Post Reply