Start ::
Extensions Support and Information ::
Modules ::
Pagemaster feedback
Moderated by: Support Team
-
- rank:
-
pnFreshman
- registered:
- September 2004
- Status:
- offline
- last visit:
- 06.05.08
- Posts:
- 26
Well, I try to understand but the results are...
I explain my installation from the beginning:
I work with pn.8
1/ I download pagemaster from the SVN
2/ I upload the includes and module folder on my server
3/ I activate pagemaster from admin panel
4/ I go to pagemaster admin
5/ In parameters: for upload path I have "datas" (but I don't know if pagemaster want the full server path or a relative path from /modules/pagemaster
6/ I create a new publication call MyTest filling only the required field and "save" (or record it)
Fine it appears in my PublicationTypes list
7/Clicking on the title ofthe publication go to publicationtype manager where I notice some changes like names for output and input templates
8/I went again to PublicationTypes list and add to fields in MyTest fields manager (title and main(choosing scribite in extra field))
9/ Back from PublicationTypes Manager for create a new article
10/ He tells me that I could create my own form template
Fine but for the moment I used the default one (scribite work fine)
I choose view in pub list and approve...
And arrive on report errors page:
11/in pntemplate directory I found the publist template... I made a copy, rename it as publist_MyTest.html and upload it in output folder.
12/I refresh the page...
Damned PostNuke informe me that:
and pagemaster
(I first try to go to publicationtypes manager and list articles and obtained the same result)
13/In my memories, it reminds there's an other choice when I create the publication: Update tables in DB
I clicked it and try again to list my article. (of course there was none because no table to record it)
14/ I create a new article...but after approve it nothing happen only a pagemaster error message
... but publist_MyTest.htm is in my pagemaster/pntemplates/output
15/Back to publicationtypes manager and try to list article again:
In list of publications... nothing (execept no output template and new article link)
In Admin list of publications I could edit my article and view history but if I want to view it, once again there's a pagemaster error with outup template (no viewpub_MyTest.htm... that's right) and pnRender (I suppose) open a pop window with many information)
Here I stop my test, because I'm unable to go away. -
- rank:
-
pnFreshman
- registered:
- January 2005
- Status:
- offline
- last visit:
- 04.05.08
- Posts:
- 37
Thanks for your complete test report.
Actually, you dont need to put any templates into /input or /output for havin a working pagemaster. You should be able to insert/edit/show publications with the generic ones. I propose to delete them and start using them after you can insert/edit/show publications with the generic templates.
"Update tables in DB I clicked it and try again to list my article." This is something you have to do, everytime you change the fields. I will print out a better error message, if the table are not available.
Is the server online? URL? Then I would have a look on it.
Are you using the SVN version?
-
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 13.05.08
- Posts:
- 7648
Marco,
The problem with the dependancies is with pagemaster. In your dependency list you've used the module display names not the real module name. Since the display name can change you *must* use the real module name. So 'scribite!' must be 'scribite' and 'thumbnails' must be 'Thumbnail'.
After this change, tested using revision 145 of SVN, pagemaster installs fine.
-Mark
-
- rank:
-
pnFreshman
- registered:
- September 2004
- Status:
- offline
- last visit:
- 06.05.08
- Posts:
- 26
Hi,
I test after checking a comparaison with my online version and the SVN 145.
So there are many not updated file on my version. Many problems have solved.
But I still have the pnRender's debugg window (I suppose) opening when I try to view a publication.
-
- rank:
-
pnFreshman
- registered:
- January 2005
- Status:
- offline
- last visit:
- 04.05.08
- Posts:
- 37
pnRender's debugg window is desired with the generic templates and admin rights.
If you want it to disapear, you have to create your own templates, without the lin
[--pndebug--] line in it. -
- rank:
-
pnFreshman
- registered:
- September 2004
- Status:
- offline
- last visit:
- 06.05.08
- Posts:
- 26
ok I found it and desactivate it.
Great.
I could try next step soon : working on template.
If I understand, I can start my template with generated code in publicationtypes manager.
I copy pnform code in an edit pnform code in a input/pubedit_MyPub_all.htm
And for the twice basic output (list and view) I can use the respective generated code in indicated files in output folder.
Is there tips for rss templates or block templates??
May I have a suggestion?
Why do not use template name as in page setter such as MyPub_typeoftemplate.htm instead of typeoftemplate_MyPub.htm?
In the templates directories it is easiest to sort the template by publication.
(If I don't say another bullshit... MagicConfuse with synchronization...) -
- rank:
-
pnHelper
- registered:
- February 2005
- Status:
- offline
- last visit:
- 04.05.08
- Posts:
- 150
Hi spax,
Looks all great thus far! I'm missing an equivalent for pagesetter_admin_getPublicationTypes. I see in pnblocks/list.php (and in a few other places) something like this:
Any chance of making this into an API function? -
- rank:
-
pnFreshman
- registered:
- January 2005
- Status:
- offline
- last visit:
- 04.05.08
- Posts:
- 37
Hi
I often have this problem during programming in .8. It's very easy to get an array DBUtil :: selectObjectArray("pagemaster_pubtypes");
so is it better to create an API function, which does exactly this? It needs more code and is slower...
foreach ($pubTypesData as $pubType) {
$pubTypes[] = array (
'name' => $pubType['title'],
'id' => $pubType['tid']
);
}
I hade to do, because I was too lazy to do the block complete new and copied the Pagesetter block, and had to be compatible to the code, so I needed this array in this format. -
- rank:
-
pnFreshman
- registered:
- January 2005
- Status:
- offline
- last visit:
- 04.05.08
- Posts:
- 37
I would prefere a solution, with its possible to cache stuff in a static variable, because with this I could safe a few of DB queries.
For sure this could be implemented in a API function.
A quick solution for you could be to create a pnuserapi folder an put the function in it -> 10 mins work for you
Start ::
Extensions Support and Information ::
Modules ::
Pagemaster feedback
