Batsis

How do I bust caching for Assets/Images in the CMS on SS 3.7.3?

muskie9

I haven't tried it, but you could have a look at this module: https://github.com/heyday/silverstripe-hashpath

Show 1 attachment(s)
heyday/silverstripe-hashpath

Easy asset cache busting in SilverStripe templates by inlining file hashes in URLs

Hide attachment content
Batsis

I saw that and was wondering if it can be used for admin assets? For example, for files that can be opened via the link in the Files section of the CMS

muskie9

that's a really good question, I haven't looked that far into it to know that unfortunately

muskie9

if you dig in and find anything out I'm interested to know how you get on

Batsis
  1. $fields->addFieldToTab('Root.Children', GridField::create(
  2. 'Children',
  3. 'Children',
  4. MYCLASS::get()->filter(array('ParentID' => 1,
  5. ))
Batsis

Can someone please refer me to a doc or a solution for showing archived pages in a gridField? I already have the code for showing published pages but just looking to get the archived ones too

Batsis

Thanks @nightjarnz. That will be it. I can see a dev/task for publishing page from locales, I will run that and see what happens

👍 (1)
Batsis

@nightjarnz Publishing the pages still does not resolve the issue. The URL it generates is /home/SearchForm/?Search=Team&action_results=

nightjarnz

This is different to Translatable, where a "locale" was essentially just a subsite, and could have an extremely different content structure.

Batsis

why would FullTextSearch not work with Fluent? I have got two locales and the search does not render http://Page_result.ss at all. Deleting both the locales from the CMS fixes everything. The format of the locales is en_NZ...

Batsis

Please note it looks fine on the front-end. just that it has wrong href i.e. [sitetree_link,id=28]

Batsis

Would anyone know why does Tinymce render SS_Internal links like this <a title="my-link" href="[sitetree_link,id=28]" rel="noopener">my link</a>