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

About page #148

Open
Keisan opened this issue Apr 2, 2018 · 6 comments
Open

About page #148

Keisan opened this issue Apr 2, 2018 · 6 comments
Labels

Comments

@Keisan
Copy link

Keisan commented Apr 2, 2018

I would like to see an example of how to implement a link to a static page in the menu, like an "about" page.

@logicalphase
Copy link

logicalphase commented Apr 2, 2018 via email

@Keisan
Copy link
Author

Keisan commented Apr 3, 2018

Thanks. I have dowloaded it an tried to understand how it works, but I feel I am getting more and more confused.
I am more of a code programmer than graphic designer, so I rather start with a template with ok design and add code than getting the code and add css.
The news app has most of the basic features that I need except example how to show static pages like "about" page.
My next step is to add dynamics by using Firebase. Since the news app already read the data as son files I believe it won't be to difficult to add.
Conclusion
I still believe ti would be good for newbies in Polymer to be able to see how a static page would be accessed from the menu.

@logicalphase
Copy link

I don't disagree that more examples of basic routing would be helpful. And I suspect you may find faster help by asking over in the Slack channel since the news app is using a category based routing process.

The principles of the PSK and the news app are the same, but the structure is different to account for categories. The folks on Slack are helpful. Give that a try.

@Keisan
Copy link
Author

Keisan commented Apr 4, 2018

Hhmm,
I have tried to look into PSK, and read the "What is in the box" at Polymer. When I do the changes as written as examples the content disappears!
When I look at polycasts Rob is showing in different ways in each video and I get more and more frustrated. And they don't seem to work with the news app code.
Ok, Slack. Where do I find it. When I searched on the net I found a fancy web site, but I doubt it was the correct one. Could you please guide me where it is.

@logicalphase
Copy link

logicalphase commented Apr 4, 2018 via email

@Keisan
Copy link
Author

Keisan commented Apr 5, 2018

I have solve the problem this way:
In news-header.html and news-drawer.html,
I have changed:
<a name="[[category.name]]" href="/list/[[category.name]]">[[category.title]]</a>
to:
<a name="[[category.name]]" href="[[category.page]]/[[category.name]]">[[category.title]]</a>

AND in news-data.html added either ", page: 'article'" or ", page: 'list'" to each item in the categoryList.

I might change it from 'article' to 'page' and make a copy of news-article.html, and name the copy news-page.html, so I can get a different design on these pages.

I have looked into a number of forks.
Some keep the about page a list view - not very good since it does not apply to convention.
Some scrap the categoryList completely and hard code the links with a-links. This in on many different places on the web site, as makes it difficult to maintain.

From what I can see by looking at these forks. It is a problem for the developers, as is learning to use Polymer, that an about page is not included in the news app example. Several have manage to get around the problem but not very beautiful.

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

3 participants