Hej på er!
In the Global settings page of PN 0.8 (index.php?module=Settings&type=admin) there is a textbox for start page URL labelled "Site entry point". Default is index.php.
By mistake i pasted this crazy URL in:
http://www.scire.se/index.php?module=Content&func=view&previ
and klicked the update checkmark, which, of course, made my site go equally crazy. I couldn't navigate anywhere because PostNuke tried to use the above URL instead of index.php, tagging "?module=" etc on to it.
So, since mavigation seized to function, by pasting
index.php?module=Settings&type=admin into the adress bar I managed to get back to global settings page in order to erase the wack-o URL and replace it with the original index.php. Only thing is that when I did so and klicked the green "execute" check, PostNuke tried again to navigate to the crazy URL with index.php?module=Settings&type=admin tagged on to it before really executing my change (it seemed), so I got an error and the value for the "site entry point" is not altered. I'm stuck, so to speak. What can I do?
Hope I described this problem clearly enough.
Klas
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Catch 22 in admin global settings panel
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
using your mysql editor phpMyAdmin
go to table module vars and find the line with entrypoint and edit it back to index.php
I will talk to the team about this issue... as the confirm page.. trumps manually overriding the browser...
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Feb 18, 2008
- Posts: 65
Thanks, it did the trick.
Have I got this right: When "entry point" function is working correctly (which it doesn't now), I should change the value of it in order to have a home page that's not "index.php"? (Like one of my pages made in the "Content" module for example)
Klas
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
Nice try...
No Site Entry Point allows you to rename index.php... something else, in case you need index.php for another script (I would guess).
You are in the right section... just edit the module and functions to suite your needs.
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Feb 18, 2008
- Posts: 65
OK, thanks. Doing my best ;)
So, the fields I should edit in order to choose a start page is "Start module", "Start function type", "Start function" and "Start function arguments", right?
My simple question is: How?
I have five pages created in "Content" module, and I want the first of them to be the start page, so I set the "Start module" drop-down to "Content". But as for the three text boxes, I don't have a clue. (Don't even understand "function" and "argument" in this context.)
Klas
-
- Rank: Softmore
- Registered: Jan 22, 2008
- Last visit: Apr 04, 2010
- Posts: 130
For the Content module:
Start function type = user
Start function = view
Start function arguments = pid=1 (or whatever )
Hope that helps
--
David
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
I think that we'll put a file_exists check on this setting before allowing an update. This will, for the most part, prevent this from being set incorrectly.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
A check for valid entry points has now been added to SVN. This code will be in the next daily build.
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Feb 18, 2008
- Posts: 65
Quote
For the Content module:
Start function type = user
Start function = view
Start function arguments = pid=1 (or whatever )
Hope that helps
Thanks, David and everybody, for helping me.
I don't really understand, though.
"User"? Why should a user be set here?
"View"? What's that?
"pid", should be the internal ID of the page, right? But why can several ID-s be set? (Just one page can be first)
I just want to tell the system what page everybody should come to when they first arrive to my site.
How do I do that?
Thanks again!
Klas -
- Rank: Expert
- Registered: Nov 23, 2003
- Last visit: Dec 13, 2009
- Posts: 1487
Are you using short URL's? If so turn them off till you understand this.
A standard PostNuke URL has this format index.php?module=xxx&type=xxx&func=xxx&arg1=xxx&arg2=xxx etc.
The 'module' part is obvious (I hope).
The 'type' is typically either 'user' or 'admin'. If you're viewing the module normally through your site it'll read 'user', but if you're viewing the module through the admin area of your site it'll read 'admin'. So basicaly this is a method of separating different functionality groups in a module.
The function or 'func' is the function being called from the module. A standard module will typically have 'main' for the modules main display function (often an index to the modules contents), 'display' for a modules main output, and 'view' for a more detailed view of a modules content.
And 'args' are any module input details that are not module name, type, or function.
The module name must be set. If the 'type' is not set it defaults to 'user'. If the function ('func') is not set it defaults to 'main'.
In your case you may only have one argument, the pid (this may not actually be what the module uses, RosterMaster uses rid for rosterID). In the module I'm currently working on the 'display' function can take several arguments including 2 sort columns and directions.
So you want to browse to the page you want as your start page and then look at the URL to determine what you need in the front page options for your site.
Does that clarify?
--
Under Construction! -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Feb 18, 2008
- Posts: 65
Thanks a lot for instructing!
I don't understand the reason for everything or how to use these things in different contexts, but i understand enough to make it work for my purposes.
What is "short URL's" and where do I turn it off?
Thanks again
hälsar
Klas
edited by: Menvafan, Jan 31, 2008 - 01:54 PM -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Complementing this topic, i can say this:
As Topiatic says, each module has basically 'user' function (frontend) and 'admin' function (backend), that is the 'type' parameter. In that 'controllers' you have many functions available that you can use through the 'func' parameter. Default values for 'type' parameter is user, and for 'func' is main.
Three basic parameters that let you use all the PostNuke functions:
index.php?module=News
you are calling to the frontend (type='user') of the module 'News', in the function main.
index.php?module=FAQ&func=view
you are calling to the frontend (type='user') of the module 'FAQ', in the function view: list of FAQs.
index.php?module=Downloads&type=admin
you are calling to the backend (type='admin') of the module 'Downloads', in the function main: admin panel of the Downloads module.
Any function can receive parameters to accomplish some task:
index.php?module=Pages&func=display&pid=3
you are calling to the frontend (type='admin') of the module 'Pages', in the function display with a parameter 'pid'=3: display the page number 3.
index.php?module=Downloads&type=admin&func=editdownload&dlid=130
you are calling to the backend (type='admin') of the module 'Downloads', in the function 'editdownload': edit form to update the data of the download with dlid=130.
Now, i hope you get this parameters in all your PostNuke site "contexts"
finally, shortURLs is the way to convert all the non-friendly URLs above, to a friendly form. This conversion applies to frontend URLs and not to the backend ones.
There are 'directory' and 'file' shortURL types:
File:
like you can see in the URL of this forum, you see a path to a "file" instead the parameters mentioned above. The URL is converted to:
/modulename-func-parameters.htm in general.
You will see URLs like:
/News.htm (frontend of the News module)
/Article120.htm (display screen for the News article with id=120)
/Page3.htm (display screen for the Page with id=3)
Directory:
with this shortURLs style, your urls will like a directory path like:
/modulename/type-or-func/parameters:values in general.
You will see URLs like:
/News/
/Pages/display/pid:3
and using permalinks, your News articles will have an URL like:
/News/YYYY/MM/DD/permalink-of-the-article/
Nice isn't it?
The point it's clear?
--
- Mateo T. -
Mis principios... son mis fines
- Moderated by:
- Support
