Fork me on GitHub

Catch 22 in admin global settings panel  Bottom

  • 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
  • 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
  • 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



  • 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
  • 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



  • For the Content module:

    Start function type = user
    Start function = view
    Start function arguments = pid=1 (or whatever )

    Hope that helps

    --
    David
  • 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.
  • 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.
  • 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
  • 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!
  • 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
  • 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" icon_wink
    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? icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines

This list is based on users active over the last 60 minutes.