Quantcast
Channel:
Browsing all 4235 articles
Browse latest View live
↧

Re: SilverStripe in a SaaS Configuration

Cool - sounds good. We will extend this to do a DB look up to get the switch statement (as there are going to be 100s of accounts) then probably store it in a session so we dont have double hit the DB...

View Article


Re: Restricting assets SS indexes

Yes. The leading underscore doesn't work anymore... in favour of a hardcoded '_resampled' or '_combinedfiles'... though not sure why...You can use the dot as the prefix (.myfolder) or you can define...

View Article


Re: Framework: Setting the Root Controller Route on 3.1

Hi All,I would be very interested in knowing what the issue with this is as well, as I am having the same issues in 3.1, but would prefer to stick to 3.1 if poss?I have tried quite a few different...

View Article

register Shortcode with yml-File

Hi experts,I know how to register a shortcode within the config.php.But how can I do the same within a yml file?I couldn't find this in the docs.TIAStephanPosted to: register Shortcode with yml-File |...

View Article

Re: register Shortcode with yml-File

You can't.Posted to: register Shortcode with yml-File | Show Thread | Post Reply

View Article


Re: Restricting assets SS indexes

Hi Devlin, thank you that worked at treat!Posted to: Restricting assets SS indexes | Show Thread | Post Reply

View Article

Re: Accessing a multi-dimensional array on a template

Here's one I wrote recently, which I want to add to the ArrayLib class, but haven't yet written tests for, so haven't sent a PR in yet.Let me know what you think. It hasn't been extensively tested -...

View Article

Re: Framework: Setting the Root Controller Route on 3.1

Hi all,This is definitely possible in 3.1, the key is adding in extra routes between #rootroutes and #coreroutes. You can do this with something like:---Name: 'rootroutes'---Director:   rules:...

View Article


HTML code starts with php tag

I'm seeing a weird bug/error in the HTML Silverstripe outputs. For some reason the HTML output for every page starts with "<?php". It doesn't seem to be related to any of my templates - even a...

View Article


Image may be NSFW.
Clik here to view.

Passing a session or paramter

Hi guys, I've spent hours researching this and trying to implement various means but i'm at the dead end right now.I want to accomplish the following scenario:I want to click on a button or image, call...

View Article

Re: Passing a session or paramter

That is quite a broad question. For 'click something and execute code' You can use GET parameters. A basic example might look like<a href="home/?doawesome=1">Do it</a>On your page in the...

View Article

Re: Passing a session or paramter

Thank you so much! I've got it to work now, I'll show you what I did. I still need to change so that the database doesn't search for partial matches but I'll figure something out for that. But here is...

View Article

How to use an OptionsetField ?

Hi, I am alway relatively new to SilverStripe and not very used to PHP programming.I would like to do an ArticleHolder whose behaviour depend on a var (here MyType)I did the following in the...

View Article


Re: How to use an OptionsetField ?

Hi jaaf,Your database field is called 'MyType', but your field name is 'MyTypeID'. You only need to append 'ID' if you're referring to a has_one relation, so you should rename your field (the first,...

View Article

Re: CSRF error on form submission: "There seems to have been a technical...

With the recent PR-2835 this no longer is an issue.For some reason, it still occasionally gets into this strange state when using Safari. Now I get a more pleasant error message with the form preloaded...

View Article


Re: How to use an OptionsetField ?

Thank you kinglozzer,I see now. Renaming of field was not necessary here.Posted to: How to use an OptionsetField ? | Show Thread | Post Reply

View Article

Image may be NSFW.
Clik here to view.

Re: Framework: Setting the Root Controller Route on 3.1

Hmm, I wasn't aware that you could do this... I will give it a go next chance I get and see what happens .Cheers,MoPosted to: Framework: Setting the Root Controller Route on 3.1 | Show Thread | Post Reply

View Article


Is silverstripe for me?

HelloIm new to silverstripe, never used it before atall.I am trying to create a webpage and thought id write a post here first to see if you think i should start working with silverstripe or just...

View Article

Re: Is silverstripe for me?

Hi BehedwinUnfortunately the answer might be no. Silverstripe is a fantastic CMS, very very powerful and great to work with. That said, it does require a reasonable amount of PHP knowledge to do most...

View Article

Re: Is silverstripe for me?

I'd have to agree with kindlemanwill. SilverStripe would be a great option to achieve what you're after - if you did have some familiarity with PHP & programming in general. Do you already have a...

View Article
Browsing all 4235 articles
Browse latest View live