-
Notifications
You must be signed in to change notification settings - Fork 52
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
Navigation #136
Comments
At this point I'm not sure what was working at the end of the series, but I belive the navigation still needed some code. |
Further to creptor's comment (thanks for that) I looked at adding a muliple query to insert data to the navigation table in database. That part of the code reads in Queries page:
} else { The error message reads: Page could not be added because: Query was empty Query: INSERT INTO posts (type, user, slug, title, label, header, body) VALUES (1, 1, 'contact', 'Contact', 'contact', 'Contact Us', '');INSERT INTO navigation (id, label, url) VALUES ('', 'contact', '' ); It would therefore appear that the id and url are not posting. I used the variables that I thought would do the job, but obviously not. Can anyone point me in the right direction> Thanks MC |
Isn't $opened an array?? If so you would add it to the query like this: On Thu, Jun 25, 2015 at 7:40 AM, SPMR01 notifications@github.com wrote:
|
First you must check that the databes acepts null values, because you're sending some of them. |
One thing to that I noticed, you have to create the navigation on phpmyadmin as well. Because earlier today when I was working on finishing the series, I noticed that I had a contact page in navigation, but I had a test page that only showed in page manager. Then I remembered that earlier in the series that we added home, about, and contact to our navigation in phpmyadmin. So I switched the title, label, header, etc, to contact and it worked. Try that and see how it works. I haven't finished the series yet, but I was hoping for there to be a way to add a navigation via admin navigation page. Guess I'll have to wait and see. |
Many thanks for responses. As a complete newcomer to this I am on a steep learning curve and I am still trying to get my head around how it works, So far I can add a page through Page Manager. Everything works. However, the page does not appear in Navigation Page nor in the front end Navigation Bar. You cannot add to the Navigation Page and when you try to change what is there, it simply overwrites the database entry. I am now going to play around with the coding bearing in mind the comments above. |
No no no. You need to go to your phpmyadmin. Insert a new page in navigation. Make sure u fill out the id label url position right. Leave target n status blank. Then go to your page manager and add it. Make sense? Trust me ive tried it twice now. I just tried it again to make sure. --- Original Message --- From: "SPMR01" notifications@github.com Many thanks for responses. As a complete newcomer to this I am on a steep learning curve and I am still trying to get my head around how it works, So far I can add a page through Page Manager. Everything works. However, the page does not appear in Navigation Page nor in the front end Navigation Bar. You cannot add to the Navigation Page and when you try to change what is there, it simply overwrites the database entry. I am now going to play around with the coding bearing in mind the comments above. Reply to this email directly or view it on GitHub: |
Sorry, I did not make myself clear. I have noted your comments and did what you advised and the result was as you wrote. Thank you for your guidance. |
Yeah i guess you could if you wanted to. Although im not sure how to do that off the top of my head. I'd have to look at the coding. Only thig is that the coding end might get messy. --- Original Message --- From: "SPMR01" notifications@github.com Sorry, I did not make myself clear. I have noted your comments and did what you advised and the result was as you wrote. Thank you for your guidance. Reply to this email directly or view it on GitHub: |
Hi again. This then gave the right information to the front end index page. This then ignores the Navigation Page. The trick now will be to get the Page Manager list to be given that cool 'list-sort' effect. |
Hi
Firstly thank you for a great learning experience, I shall certainly be making a contribution.
As a silver headed newbie I have finished the videos and managed to keep up!
However, when I add a page in the admin side it succeeds and the database shows the new page and it appears in the admin pages list, but the page does not appear in the admin navigation page. It does not also show in the front end either. I have checked for errors and there are none. Can anyone help me understand what I may be doing wrong? Help much appreciated.
MC
The text was updated successfully, but these errors were encountered: