Can't find Concrete\Core
Permalink
I can't figure out how to find the Concrete\Core folder that everyone talks about. Is that not on the domain FTP? I have some experience editing code, but I'm not experienced enough to know where to find Core if it's not where I thought it was supposed to be. Everyone just says to go edit concrete\core but if that's not under the website's FTP area then I have absolutely no idea what everyone is talking about.
I just need to make some simple edits to page list and have no idea how to find core. Any input on this would be greatly appreciated.
I just need to make some simple edits to page list and have no idea how to find core. Any input on this would be greatly appreciated.
Not sure how you got pointed in that direction.
If you want to create a specific template for the page list block but leave the original page list as it is, copy:
/concrete/blocks/page_list/view.php and /concrete/blocks/page_list/view.css
to
/application/blocks/page_list/templates/name_of_your_template/
and edit those files only. This will maintain your changes even after a concrete5 update (all changes within the /concrete directory will be lost then)
On your webpage, place a pagelist somewhere, choose "Design" from the dropdown when clicking that pagelist and choose your template from the gear icon.
That should to it.
If you want to create a specific template for the page list block but leave the original page list as it is, copy:
/concrete/blocks/page_list/view.php and /concrete/blocks/page_list/view.css
to
/application/blocks/page_list/templates/name_of_your_template/
and edit those files only. This will maintain your changes even after a concrete5 update (all changes within the /concrete directory will be lost then)
On your webpage, place a pagelist somewhere, choose "Design" from the dropdown when clicking that pagelist and choose your template from the gear icon.
That should to it.
All I'm wanting to do is add page types for the page list that include multiple page types. I want to make page lists that include a few different categories of page types instead of either "all" or one specific type.
I'm not insanely good with coding, but I can struggle my way through most of the time. I'll check for src and get back to this if it does or doesn't work. Thanks!
I'm not insanely good with coding, but I can struggle my way through most of the time. I'll check for src and get back to this if it does or doesn't work. Thanks!
Ok, if you want to change the functionality of the pagelist block, you need to dig into the controller folder.
Watch out for namespacing there!
Watch out for namespacing there!
Well it looks like it's going to be a long day.
So I was using this:https://documentation.concrete5.org/developers/working-with-pages/se...
But now I'm unsure what I'm doing though.
That doesn't really seem like something that necessarily exists. I found the filterbypagetypehandle function but it doesn't help me like I thought it would.
I desperately need to create custom filters and be able to add more in the future. So for example, I need to make custom options that include, for example, blog entry and empty page in a single page list. How does the "**All**" option work? I basically need that, except for only one or two page types rather than all page types.
If anyone can point me in the right direction for this that would be wonderful. I'm not the most skilled coder in the world so I'm struggling to figure this out right now. I'm saddened by my lack of skill right now, I know this one should be relatively easy yet I'm still having quite the time trying to solve this.
So I was using this:https://documentation.concrete5.org/developers/working-with-pages/se...
But now I'm unsure what I'm doing though.
$list = new \Concrete\Core\Page\PageList(); $list->filterByPageTypeHandle('blog_entry'); $pages = $list->getResults()
That doesn't really seem like something that necessarily exists. I found the filterbypagetypehandle function but it doesn't help me like I thought it would.
I desperately need to create custom filters and be able to add more in the future. So for example, I need to make custom options that include, for example, blog entry and empty page in a single page list. How does the "**All**" option work? I basically need that, except for only one or two page types rather than all page types.
If anyone can point me in the right direction for this that would be wonderful. I'm not the most skilled coder in the world so I'm struggling to figure this out right now. I'm saddened by my lack of skill right now, I know this one should be relatively easy yet I'm still having quite the time trying to solve this.
You can filter by multiple page type handles like this
$list->filterByPageTypeHandle(array('blog_entry', 'another_page_type'));
I don't understand where to dump that code though. Do I just paste that under the filterbypagetypehandle function? I have no idea where to insert that to have it function correctly.
Well this thread has strayed from the original question. Thank you weyboat for your answer, that user had the correct answer, core is now in fact called src. Regardless of all of you trying to help, I don't think I'm going to be able to figure out how to put multiple page types into a page list without someone spelling it out for me.
I appreciate the help, if anyone wants to come in here and spell out how to do it, feel free, until that time I'll be trying to devise some other work around for my website. I've never cursed my lack of programming skills as much as I do right now.
I appreciate the help, if anyone wants to come in here and spell out how to do it, feel free, until that time I'll be trying to devise some other work around for my website. I've never cursed my lack of programming skills as much as I do right now.
Are you trying to do this in the PageList block or are you trying to do it in a custom block or a template somewhere? You should be able to just switch out the 'blog_entry' in your code with an array of page type handles to include multiple page type handles. Also, case is very important, so do not make it all lower case.
So look in concrete\src\