Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override text to use in the menu #63

Closed
gma opened this issue Aug 25, 2011 · 5 comments
Closed

Override text to use in the menu #63

gma opened this issue Aug 25, 2011 · 5 comments
Labels
Milestone

Comments

@gma
Copy link
Owner

gma commented Aug 25, 2011

When you construct a menu you specify the paths to pages in your site, and Nesta will use the headings on those pages as link text when building the menu. Sometimes it makes sense to override the text used for a menu item; allow link text to be optionally specified in menu.txt after a menu item's path. The link will be separated from the path by whitespace.

@chadoh
Copy link
Contributor

chadoh commented Jun 16, 2012

I can take this, if you want.

I made a new project with Nesta 0.9.13, and saw that a "Link text" metadata was added to the content-demo index page. As far as I can tell, it doesn't do anything. I was going to implement "text to use on the menu" using that, but I like the idea of using menu.txt more.

@gma
Copy link
Owner Author

gma commented Jun 16, 2012

Thanks for the offer – much appreciated. If you fancy having a crack at it I think the message at the top of this bug report covers the implementation I was planning to explore. It would look something like this:

- / Home
- path/to/page Some page
  - another/page Another page with a really long link

The content-demo is a separate repository that isn't branched. If you install Nesta from master on GitHub [1] you'll be able to use the Link text metadata to control the menu links. I need to get 0.10.0 out; it's becoming a bit embarrassing, but I really need to move quickly on my startup right now so almost all my time is spent on that. A PR for this feature would be very welcome, but wouldn't be merged until I get a free afternoon to work on releasing 0.10.0.

[1] http://nestacms.com/docs/recipes/running-the-latest-code

@chadoh
Copy link
Contributor

chadoh commented Jun 16, 2012

Ah, perfect, master does just what I want. So... I'm not gonna bother modifying the behavior of menu.txt! Sorry for the false hope.

@gma
Copy link
Owner Author

gma commented Jun 16, 2012

No problem! Link text has certainly reduced the priority of this one for me…

@gma
Copy link
Owner Author

gma commented Mar 14, 2023

Given that nobody has missed this enough to comment for over a decade (myself included), I'm closing it!

@gma gma closed this as not planned Won't fix, can't repro, duplicate, stale Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants