thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

Pages wont display on index.php #238

Open nutella08 opened 6 years ago

nutella08 commented 6 years ago

Thanks for this awesome tutorial! have an issue after I completed the last video #112, when I add new pages in "page manager" these dont show up on index.php like they did before. Only "Home" and "About us" content shows up. The new pages are inserted in the "posts" table but dont show up on index.php.

What I actually want to achieve is to create new posts and be able to assign them different values, say 1 or 2. Then, when I click on "home" tab only the posts #1 show, when I click "about us", only posts #2 show up. How can I accomplish this?

Code:

admin/views/pages.php https://pastebin.com/1CDau1bm

admin/views/navigation.php https://pastebin.com/RNDAe6yN

admin/Config/queries.php : https://pastebin.com/P4dbb646

admin/functions/data.php https://pastebin.com/HqwtvKPZ

admin/functions/functions.php https://pastebin.com/uFtyd5gc

functions/data.php https://pastebin.com/4mcZf60r

functions/template.php https://pastebin.com/cyMaUmjh

creptor commented 6 years ago

I'm sorry but I didn't understand what the desired behavior is, please try to be more specific so that I can understand how to help you.

Also if you have any issue now, it would be great to solve it first, and then create a new issue with the new implementation. It would be much easier to work with.

creptor commented 6 years ago

Also calling to archives, like dont show up on index.php, is very confusing, because it doesn't show what it does and doesn't, fixing errors in there would be very hard.

Please try to say what's supposed to do too, like doesn't shows up in the table on index.php, in that way the code will make much more sense, and will be easier to understand.