Quantcast
Channel:
Browsing all 4235 articles
Browse latest View live

Can I access data from getCMSFields?

Hi guys,I'm new in SilverStripe and i'm not quite sure i can do this.Can i access the data from getCMSField?class ImageDemo extends Page { static $db = array( 'Title' => 'Varchar' ); static $has_one...

View Article


Thoughts on using SS for a mid-load personalized application?

Has anyone had much experience with using SS for the creation of an application with a large amount of personalized information per user, and a moderate amount of users? I'm talking around 10k users...

View Article


Re: control Page by PageType

to answer my own (silly) question.I just need to use a loop instead of controlPosted to: control Page by PageType | Show Thread | Post Reply

View Article

Image may be NSFW.
Clik here to view.

Re: Sort existing values over nulls

Your suggestions are much appreciated guys, but I'm looking for a SORT not a filter (sort null before asc).So I will probably do 2 data queries, one for null due dates and one for tasks that have...

View Article

Re: Can I access data from getCMSFields?

The answer is sometimes. You can for edit forms but on creation the form values will not be set. You could do something like if($this->Graphic() && $this->Graphic()->exists()) { //...

View Article


Re: Can't Open/Edit pages in the Admin & Other Issues

Bereusei - Thank you! That solved the index.php issue. I can now use the regular admin url. I'm still getting the "Notice at line 173 of ....framework/dev/Deprecation.php" error for many pages in the...

View Article

Re: Can't Open/Edit pages in the Admin & Other Issues

To give more information on not being able to edit pages in the admin. Pages that don't have any module associated with them seem to open fine. Pages that do use a module or custom field of some sort...

View Article

Hyperlinking to DataObjects on a Display Page

Hey SS'ers,My current dilemma seems to be something I don't exactly even know how to search for it much less know if its even been done before. I know there could be other ways to display what I'm...

View Article


Image may be NSFW.
Clik here to view.

Re: Can I access data from getCMSFields?

Thank you very much, that worked perfectly Posted to: Can I access data from getCMSFields? | Show Thread | Post Reply

View Article


Re: Hyperlinking to DataObjects on a Display Page

Checkout custom Controllers. You'll be able to customise a url to point to a specific function like renderMember() with something like mysite.com/member/$IDinside renderMember if you use...

View Article

PHPUnit Exception testing

HI all,I'm having trouble verifying exceptions.   /**    * @expectedException ValidationException    */   public function test_project_should_not_save_without_expiry() {      $project = new Project();...

View Article

Start custom filter automatically

Hey guys,in the backend of SS3 we have the nice filter function to search for special dataobjects in the listview.In the modeladmin I´ve used a code which load values in the filter inputfields: public...

View Article

Re: Add field to UploadField iframe

Hi MarijnKampf, Please guide me a little, I have added headerimagebanner on my silverstripe site. Everything is working fine but slider is not working only one slide is visible. Please let me know how...

View Article


How to get Silverstripe to use templates in folder

I probably have a really silly question but i cannot get my homepage.php to use the homepage.ss template located in <mysite>/templates/homepage.ss It just reverts back to the default silverstripe...

View Article

Re: How to get Silverstripe to use templates in folder

Hi Schippie,could you check/post your classes in side homepage.phpfor example I haveclass HomePage extends Pageclass HomePage_Controller extends Page_ControllerThen I have HomePage.ssPosted to: How to...

View Article


Giving a HiddenField (or any other field) a custom id attribute

SS 2.4.5Pretty simple question, but I don't see anything in the docs: http://api.silverstripe.org/2.4/class-HiddenField.htmlI am creating a form for a frontend page. This page also has some custom JS...

View Article

Re: How to get Silverstripe to use templates in folder

They indeed extend from the default Page classes and not from the sitetree / contentcontroller classes. I would be able to post some code but only in a few hours. Posted it as a question after work and...

View Article


Re: Add field to UploadField iframe

Hi Naren,Can you give me a bit more info?1. What SS version are you running?2. Which version of the headerimagebanner are you using?3. How many images have you added to the slider?4. Are you getting...

View Article

Re: Giving a HiddenField (or any other field) a custom id attribute

If you want full control over the ID you're a bit outta luck for 3.* - https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/FormField.php#L164. You could create a Subclass of FormField...

View Article

Image may be NSFW.
Clik here to view.

Re: How to get Silverstripe to use templates in folder

Turns out i had written the HomePage class name as HomaPage never noticed yesterday. Though that brings me more or less to the next problem that is that <% include HeaderHome %> was the cause of...

View Article
Browsing all 4235 articles
Browse latest View live