Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Struggling with adding URLs to main menu
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Amiramix  
View profile  
 More options Sep 19 2012, 5:10 pm
From: Amiramix <li...@gjunka.com>
Date: Wed, 19 Sep 2012 14:10:54 -0700 (PDT)
Local: Wed, Sep 19 2012 5:10 pm
Subject: Struggling with adding URLs to main menu

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amiramix  
View profile  
 More options Sep 19 2012, 5:15 pm
From: Amiramix <li...@gjunka.com>
Date: Wed, 19 Sep 2012 14:15:30 -0700 (PDT)
Local: Wed, Sep 19 2012 5:15 pm
Subject: Re: Struggling with adding URLs to main menu

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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc Worrell  
View profile  
 More options Sep 19 2012, 5:20 pm
From: Marc Worrell <mworr...@me.com>
Date: Wed, 19 Sep 2012 23:20:23 +0200
Local: Wed, Sep 19 2012 5:20 pm
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu
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.

- M

On 19 sep. 2012, at 23:10, Amiramix wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amiramix  
View profile  
 More options Sep 19 2012, 5:44 pm
From: Amiramix <li...@gjunka.com>
Date: Wed, 19 Sep 2012 14:44:27 -0700 (PDT)
Local: Wed, Sep 19 2012 5:44 pm
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu

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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc Worrell  
View profile  
 More options Sep 19 2012, 5:59 pm
From: Marc Worrell <mworr...@me.com>
Date: Wed, 19 Sep 2012 23:58:56 +0200
Local: Wed, Sep 19 2012 5:58 pm
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu

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.

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

- Marc


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amiramix  
View profile  
 More options Sep 19 2012, 6:26 pm
From: Amiramix <li...@gjunka.com>
Date: Wed, 19 Sep 2012 15:26:10 -0700 (PDT)
Local: Wed, Sep 19 2012 6:26 pm
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu

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:

                <li class="">                    <a href="" class="" data-target="#">                        Dashboard                    </a>                </li>

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arjan Scherpenisse  
View profile  
 More options Sep 21 2012, 4:48 am
From: Arjan Scherpenisse <ar...@scherpenisse.net>
Date: Fri, 21 Sep 2012 10:48:55 +0200
Local: Fri, Sep 21 2012 4:48 am
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc Worrell  
View profile  
 More options Sep 21 2012, 11:28 am
From: Marc Worrell <mworr...@mac.com>
Date: Fri, 21 Sep 2012 17:28:44 +0200
Local: Fri, Sep 21 2012 11:28 am
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory Haskins  
View profile  
 More options Oct 26 2012, 1:08 pm
From: Gregory Haskins <gregory.hask...@gmail.com>
Date: Fri, 26 Oct 2012 10:08:09 -0700 (PDT)
Local: Fri, Oct 26 2012 1:08 pm
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory Haskins  
View profile  
 More options Oct 26 2012, 2:22 pm
From: Gregory Haskins <gregory.hask...@gmail.com>
Date: Fri, 26 Oct 2012 11:22:00 -0700 (PDT)
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu

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.

Kind Regards,
-Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andreas Stenius  
View profile  
 More options Oct 29 2012, 4:24 am
From: Andreas Stenius <andreas.sten...@astekk.se>
Date: Mon, 29 Oct 2012 09:23:58 +0100
Local: Mon, Oct 29 2012 4:23 am
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu

Hi Gregory, and welcome to the Zotonic community!

I'm glad you solved it. And you are right about the docs, which we are
working hard on improving.
Thanks for sharing your findings.

Btw, top posting is common on this list, so no issue there.. :)

Cheers,
Andreas

2012/10/26 Gregory Haskins <gregory.hask...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
@chrisco  
View profile  
 More options Oct 30 2012, 2:22 am
From: "@chrisco" <chris.come...@gmail.com>
Date: Mon, 29 Oct 2012 23:22:53 -0700 (PDT)
Local: Tues, Oct 30 2012 2:22 am
Subject: Re: [Zotonic-Dev] Struggling with adding URLs to main menu

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »