This is my n-th attempt to create a meaningful menu. For testing purposes I am trying to create a menu with a few URLs, e.g. http://www.google.com, http://www.twitter.com. I am either trying to click Add menu item and select Embed URL, or create a new page of category Website and add it to the menu. In any case the URL is being lost and when the item is being shown in the menu, clicking it actually refreshes the current page instead of redirecting to the specified URL. When I am trying to edit the specified Page the URL is nowhere to be found. I have the blog skeleton installed in which the menu works but it just shows a menu with three Text pages, all of which are internal Zotonic resources.
So, how can I add a menu item that will be an URL so that when the menu shows on the site I can click that URL and be redirected to it? And also, if I would like to construct a menu item that opens a controller within the site, say site/admin for the sake of an example, how would I need to create that menu item so that clicking it on the main site would actually redirect me to the admin section? A short example based on the blog skeleton would be greatly appreciated.
OK, I figured it out that I need to add a Page, select category Website, save it, reopen it and update the Path. It is kind of tricky that one can create Embed URL of category Website. What would be the purpose of that?
But anyway something still isn't working correctly. When adding the path as http://www.google.com the menu item tries to redirect me to site/http://www.google.com.... Is this a bug?
On Wednesday, September 19, 2012 10:10:54 PM UTC+1, Amiramix wrote:
> This is my n-th attempt to create a meaningful menu. For testing purposes > I am trying to create a menu with a few URLs, e.g. http://www.google.com, > http://www.twitter.com. I am either trying to click Add menu item and > select Embed URL, or create a new page of category Website and add it to > the menu. In any case the URL is being lost and when the item is being > shown in the menu, clicking it actually refreshes the current page instead > of redirecting to the specified URL. When I am trying to edit the specified > Page the URL is nowhere to be found. I have the blog skeleton installed in > which the menu works but it just shows a menu with three Text pages, all of > which are internal Zotonic resources.
> So, how can I add a menu item that will be an URL so that when the menu > shows on the site I can click that URL and be redirected to it? And also, > if I would like to construct a menu item that opens a controller within the > site, say site/admin for the sake of an example, how would I need to create > that menu item so that clicking it on the main site would actually redirect > me to the admin section? A short example based on the blog skeleton would > be greatly appreciated.
Did you set the URL in the 'website' field of the 'address' block?
There isn't support for adding a website redirect directly with the page creation dialog.
The Embed URL (etc) are for fetching media items from other sites using OEmbed.
> This is my n-th attempt to create a meaningful menu. For testing purposes I am trying to create a menu with a few URLs, e.g. http://www.google.com, http://www.twitter.com. I am either trying to click Add menu item and select Embed URL, or create a new page of category Website and add it to the menu. In any case the URL is being lost and when the item is being shown in the menu, clicking it actually refreshes the current page instead of redirecting to the specified URL. When I am trying to edit the specified Page the URL is nowhere to be found. I have the blog skeleton installed in which the menu works but it just shows a menu with three Text pages, all of which are internal Zotonic resources.
> So, how can I add a menu item that will be an URL so that when the menu shows on the site I can click that URL and be redirected to it? And also, if I would like to construct a menu item that opens a controller within the site, say site/admin for the sake of an example, how would I need to create that menu item so that clicking it on the main site would actually redirect me to the admin section? A short example based on the blog skeleton would be greatly appreciated.
On Wednesday, September 19, 2012 10:20:35 PM UTC+1, Marc Worrell wrote:
> Did you set the URL in the 'website' field of the 'address' block?
Setting the Website field doesn't work. The field is saved but the menu item still doesn't show the saved address. Only setting the Page path works, but then it assumes it's a path within the site, not an external URL.
There isn't support for adding a website redirect directly with the page
> creation dialog.
I would expect that when adding a Website page there should be a field to add at the same time the URL of that Website. Having to save and reopen for edit to set the address isn't too intuitive.
> The Embed URL (etc) are for fetching media items from other sites using > OEmbed.
But it still doesn't seem to make sense to save the fetched media items as some of the categories, e.g. Website or Person?
> > This is my n-th attempt to create a meaningful menu. For testing > purposes I am trying to create a menu with a few URLs, e.g. > http://www.google.com, http://www.twitter.com. I am either trying to > click Add menu item and select Embed URL, or create a new page of category > Website and add it to the menu. In any case the URL is being lost and when > the item is being shown in the menu, clicking it actually refreshes the > current page instead of redirecting to the specified URL. When I am trying > to edit the specified Page the URL is nowhere to be found. I have the blog > skeleton installed in which the menu works but it just shows a menu with > three Text pages, all of which are internal Zotonic resources.
> > So, how can I add a menu item that will be an URL so that when the menu > shows on the site I can click that URL and be redirected to it? And also, > if I would like to construct a menu item that opens a controller within the > site, say site/admin for the sake of an example, how would I need to create > that menu item so that clicking it on the main site would actually redirect > me to the admin section? A short example based on the blog skeleton would > be greatly appreciated.
> On Wednesday, September 19, 2012 10:20:35 PM UTC+1, Marc Worrell wrote:
> Did you set the URL in the 'website' field of the 'address' block?
> Setting the Website field doesn't work. The field is saved but the menu item still doesn't show the saved address. Only setting the Page path works, but then it assumes it's a path within the site, not an external URL.
Is your page of the category 'website'?
And what modules do you have enabled?
In the mod_base_site dispatch rules there is a rule:
%% Redirect controller for resource of type 'website'
{website, ["redirect", id, slug], controller_website_redirect, []},
This one is not available in the mod_base.
Maybe you can add it to your site's dispatch rules?
We are still moving some dispatch rule definitions around for the 0.9 release.
This dispatch rule is one of the those moving around.
The page_path is indeed only valid within the site.
> There isn't support for adding a website redirect directly with the page creation dialog.
> I would expect that when adding a Website page there should be a field to add at the same time the URL of that Website. Having to save and reopen for edit to set the address isn't too intuitive.
That is true, it is now a generic form that doesn't adapt to the selected category.
That can be made better.
> The Embed URL (etc) are for fetching media items from other sites using OEmbed.
> But it still doesn't seem to make sense to save the fetched media items as some of the categories, e.g. Website or Person?
Does it allow you to choose the category?
There is no category when you select "URL", "Embed code" or "Embed URL"
The category is derived from the media item found (image, video, document etc)
On Wednesday, September 19, 2012 10:59:25 PM UTC+1, Marc Worrell wrote:
> On 19 sep. 2012, at 23:44, Amiramix wrote:
> On Wednesday, September 19, 2012 10:20:35 PM UTC+1, Marc Worrell wrote:
>> Did you set the URL in the 'website' field of the 'address' block?
> Setting the Website field doesn't work. The field is saved but the menu > item still doesn't show the saved address. Only setting the Page path > works, but then it assumes it's a path within the site, not an external URL.
> Is your page of the category 'website'? > And what modules do you have enabled? > In the mod_base_site dispatch rules there is a rule:
> %% Redirect controller for resource of type 'website' > {website, ["redirect", id, slug], controller_website_redirect, []},
> This one is not available in the mod_base. > Maybe you can add it to your site's dispatch rules?
> We are still moving some dispatch rule definitions around for the 0.9 > release. > This dispatch rule is one of the those moving around.
> The page_path is indeed only valid within the site.
I think the problem is with what is being shown in the menu, not what happens when the menu item is clicked, e.g. currently the menu item looks like this:
even thought Dashboard is defined as a page with category Website and with address/Website field set to http://www.google.com. I guess it may be because the Page path is empty.
Modules that are currently active: mod_acl_adminonly,mod_admin,mod_admin_category, mod_admin_config,mod_admin_identity,mod_admin_modules, mod_admin_predicate,mod_authentication,mod_base, mod_bootstrap,mod_development,mod_logging,mod_menu, mod_oauth,mod_oembed,mod_search,mod_signal
>> The Embed URL (etc) are for fetching media items from other sites using >> OEmbed.
> But it still doesn't seem to make sense to save the fetched media items as > some of the categories, e.g. Website or Person?
> Does it allow you to choose the category? > There is no category when you select "URL", "Embed code" or "Embed URL" > The category is derived from the media item found (image, video, document > etc)
That's true. But go to Content -> Menu and click Edit at a page added previously as Embed URL or Embed code. Now the category shows Document and can be changed to whatever one desires. It must be this way that I added www.google.com as an EmbededURL and changed its category to Website because I didn't know that to add the URL I need to create Page of category Website and then edit the Page to add the URL.
I think what confusing is here, is that the "make new page" and "upload media" dialogs have merged into one.
It's a good thing but I think if we change the wording to make sure that the "URL" and "Embed code" refer to media pages, not to "generic" pages.
> This is my n-th attempt to create a meaningful menu. For testing
> purposes I am trying to create a menu with a few URLs, e.g.
> http://www.google.com, http://www.twitter.com. I am either trying to
> click Add menu item and select Embed URL, or create a new page of
> category Website and add it to the menu. In any case the URL is being
> lost and when the item is being shown in the menu, clicking it actually
> refreshes the current page instead of redirecting to the specified URL.
> When I am trying to edit the specified Page the URL is nowhere to be
> found. I have the blog skeleton installed in which the menu works but it
> just shows a menu with three Text pages, all of which are internal
> Zotonic resources.
> So, how can I add a menu item that will be an URL so that when the menu
> shows on the site I can click that URL and be redirected to it? And
> also, if I would like to construct a menu item that opens a controller
> within the site, say site/admin for the sake of an example, how would I
> need to create that menu item so that clicking it on the main site would
> actually redirect me to the admin section? A short example based on the
> blog skeleton would be greatly appreciated.
> I think what confusing is here, is that the "make new page" and "upload media" dialogs have merged into one.
> It's a good thing but I think if we change the wording to make sure that the "URL" and "Embed code" refer to media pages, not to "generic" pages.
> On 09/19/2012 11:10 PM, Amiramix wrote:
>> This is my n-th attempt to create a meaningful menu. For testing
>> purposes I am trying to create a menu with a few URLs, e.g.
>> http://www.google.com, http://www.twitter.com. I am either trying to
>> click Add menu item and select Embed URL, or create a new page of
>> category Website and add it to the menu. In any case the URL is being
>> lost and when the item is being shown in the menu, clicking it actually
>> refreshes the current page instead of redirecting to the specified URL.
>> When I am trying to edit the specified Page the URL is nowhere to be
>> found. I have the blog skeleton installed in which the menu works but it
>> just shows a menu with three Text pages, all of which are internal
>> Zotonic resources.
>> So, how can I add a menu item that will be an URL so that when the menu
>> shows on the site I can click that URL and be redirected to it? And
>> also, if I would like to construct a menu item that opens a controller
>> within the site, say site/admin for the sake of an example, how would I
>> need to create that menu item so that clicking it on the main site would
>> actually redirect me to the admin section? A short example based on the
>> blog skeleton would be greatly appreciated.
I'm an experienced Erlang guy, but new to Zotonic. I volunteered to develop a website for my son's school, but it is written in Joolma 1.0. I started playing around with upgrading to Joomla 2.5 but wasn't completely happy with the results and I am not a huge fan of PHP. Searching around for a potential replacement CMS, I discovered Zotonic. I have been pretty psyched at the prospect of developing in Erlang again, which is near and dear to my heart.
Anyway, at this juncture I am just playing around with a v0.8.1 sandbox, and running into some snags. I can see tons of anecdotal evidence that suggests you guys are already aware the documentation is a bit sparse. Coming into this cold, my impression is the doc is relatively decent from a technical/development standpoint, but it seems to be a little weak from a user standpoint. I, of course, hope to be both a user and a developer, but right now I'm just trying to get my feet wet so my focus has been from the perspective of an admin.
In this case, I was trying to do something similar to the OP. I wanted to add a menu item that redirects to an external URL. After playing with the Zotonic interface for the last day or so, I seemed to have figured out what appears to be the approximately correct way to do it (create a "website" page and populate the website field with the URL). However, when I try this I run into two problems:
1) If I save the Website page, the URL fails to persist (its blank upon re-opening the page) 2) Clicking the menu item ultimately leads to a 401 after trying to follow a ../redirect/.. resource
I suspect (2) is just a function of (1), but I figured I would mention them both to be complete.
Any help understanding what is going on or what I am doing wrong appreciated!
On Friday, September 21, 2012 11:28:47 AM UTC-4, Marc Worrell wrote:
> Yes indeed. Some wordings that we will make/download/extract a media item > will clear things up.
> -Marc
> Sent from my iPhone
> On 21 sep. 2012, at 10:48, Arjan Scherpenisse <ar...@scherpenisse.net<javascript:>> > wrote:
> > I think what confusing is here, is that the "make new page" and "upload > media" dialogs have merged into one. > > It's a good thing but I think if we change the wording to make sure that > the "URL" and "Embed code" refer to media pages, not to "generic" pages.
> > On 09/19/2012 11:10 PM, Amiramix wrote: > >> This is my n-th attempt to create a meaningful menu. For testing > >> purposes I am trying to create a menu with a few URLs, e.g. > >> http://www.google.com, http://www.twitter.com. I am either trying to > >> click Add menu item and select Embed URL, or create a new page of > >> category Website and add it to the menu. In any case the URL is being > >> lost and when the item is being shown in the menu, clicking it actually > >> refreshes the current page instead of redirecting to the specified URL. > >> When I am trying to edit the specified Page the URL is nowhere to be > >> found. I have the blog skeleton installed in which the menu works but > it > >> just shows a menu with three Text pages, all of which are internal > >> Zotonic resources.
> >> So, how can I add a menu item that will be an URL so that when the menu > >> shows on the site I can click that URL and be redirected to it? And > >> also, if I would like to construct a menu item that opens a controller > >> within the site, say site/admin for the sake of an example, how would I > >> need to create that menu item so that clicking it on the main site > would > >> actually redirect me to the admin section? A short example based on the > >> blog skeleton would be greatly appreciated.
On Friday, October 26, 2012 1:08:09 PM UTC-4, Gregory Haskins wrote:
> Any help understanding what is going on or what I am doing wrong > appreciated!
Hi again,
First off, sorry for top-posting earlier. It seems I am a bit rusty posting to a forum.
I wanted to report that I figured out what I was doing wrong: In the Website page editor, there is English->Website, which is editable. This was where I was pasting the URL which was failing to persist. After posting, i discovered there is also Address->Website further down. Setting the URL in this position did three things: 1) it persisted, 2) it seemed to synchronize the English->Website field (perhaps this was meant to be a RO label not an editbox?), and 3) it works!
I look forward to exploring more, thanks for the cool project.
> On Friday, October 26, 2012 1:08:09 PM UTC-4, Gregory Haskins wrote:
>> Any help understanding what is going on or what I am doing wrong
>> appreciated!
> Hi again,
> First off, sorry for top-posting earlier. It seems I am a bit rusty
> posting to a forum.
> I wanted to report that I figured out what I was doing wrong: In the
> Website page editor, there is English->Website, which is editable. This
> was where I was pasting the URL which was failing to persist. After
> posting, i discovered there is also Address->Website further down. Setting
> the URL in this position did three things: 1) it persisted, 2) it seemed to
> synchronize the English->Website field (perhaps this was meant to be a RO
> label not an editbox?), and 3) it works!
> I look forward to exploring more, thanks for the cool project.
Have you thought about the person who will eventually take over the website when you are no longer managing it? Is Erlang/Zotonic really the best choice? I mean I am excited about both of them, too, but I would tend to pick what is best for the next person rather than myself. Cheers.
On Friday, October 26, 2012 7:08:09 PM UTC+2, Gregory Haskins wrote:
> Hi all,
> I'm an experienced Erlang guy, but new to Zotonic. I volunteered to > develop a website for my son's school, but it is written in Joolma 1.0. I > started playing around with upgrading to Joomla 2.5 but wasn't completely > happy with the results and I am not a huge fan of PHP. Searching around for > a potential replacement CMS, I discovered Zotonic. I have been pretty > psyched at the prospect of developing in Erlang again, which is near and > dear to my heart.
> Anyway, at this juncture I am just playing around with a v0.8.1 sandbox, > and running into some snags. I can see tons of anecdotal evidence that > suggests you guys are already aware the documentation is a bit sparse. > Coming into this cold, my impression is the doc is relatively decent from > a technical/development standpoint, but it seems to be a little weak from a > user standpoint. I, of course, hope to be both a user and a developer, but > right now I'm just trying to get my feet wet so my focus has been from the > perspective of an admin.
> In this case, I was trying to do something similar to the OP. I wanted to > add a menu item that redirects to an external URL. After playing with the > Zotonic interface for the last day or so, I seemed to have figured out what > appears to be the approximately correct way to do it (create a "website" > page and populate the website field with the URL). However, when I try > this I run into two problems:
> 1) If I save the Website page, the URL fails to persist (its blank upon > re-opening the page) > 2) Clicking the menu item ultimately leads to a 401 after trying to follow > a ../redirect/.. resource
> I suspect (2) is just a function of (1), but I figured I would mention > them both to be complete.
> Any help understanding what is going on or what I am doing wrong > appreciated!
> Kind Regards, > -Greg
> On Friday, September 21, 2012 11:28:47 AM UTC-4, Marc Worrell wrote:
>> Yes indeed. Some wordings that we will make/download/extract a media >> item will clear things up.
>> -Marc
>> Sent from my iPhone
>> On 21 sep. 2012, at 10:48, Arjan Scherpenisse <ar...@scherpenisse.net> >> wrote:
>> > I think what confusing is here, is that the "make new page" and "upload >> media" dialogs have merged into one. >> > It's a good thing but I think if we change the wording to make sure >> that the "URL" and "Embed code" refer to media pages, not to "generic" >> pages.
>> > On 09/19/2012 11:10 PM, Amiramix wrote: >> >> This is my n-th attempt to create a meaningful menu. For testing >> >> purposes I am trying to create a menu with a few URLs, e.g. >> >> http://www.google.com, http://www.twitter.com. I am either trying to >> >> click Add menu item and select Embed URL, or create a new page of >> >> category Website and add it to the menu. In any case the URL is being >> >> lost and when the item is being shown in the menu, clicking it >> actually >> >> refreshes the current page instead of redirecting to the specified >> URL. >> >> When I am trying to edit the specified Page the URL is nowhere to be >> >> found. I have the blog skeleton installed in which the menu works but >> it >> >> just shows a menu with three Text pages, all of which are internal >> >> Zotonic resources.
>> >> So, how can I add a menu item that will be an URL so that when the >> menu >> >> shows on the site I can click that URL and be redirected to it? And >> >> also, if I would like to construct a menu item that opens a controller >> >> within the site, say site/admin for the sake of an example, how would >> I >> >> need to create that menu item so that clicking it on the main site >> would >> >> actually redirect me to the admin section? A short example based on >> the >> >> blog skeleton would be greatly appreciated.