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

Re: How to input title tag metadata

<?phpclass Page extends SiteTree {   private static $db = array(    'MetaTitle' => 'Text'   );   private static $has_one = array(   );      public function getCMSFields() {    $fields =...

View Article


How to install themes ...

I tried to install the theme, it installed but it does not show the pages. It only shows the main page ..Please helpPosted to: How to install themes ... | Show Thread | Post Reply

View Article


Re: SiteTree Sort Order

OK I added the line private static $default_sort = 'Title ASC';Into my PeoplePage object but that has had no effect to the order. It is still overwritten by SORT in the CMS SiteTree. I have flushed the...

View Article

Re: SS 3.0 CMS Backend: no content shown, when clicking a menu-link.

Thankyou for the thread!!!Had the same issue in 3.1.2 with uncle cheese's event calendar module. Turns out there was a space/line in one of the php files in the module.Just submitted a request to fix...

View Article

Re: [SOLVED] How to input title tag metadata

Okay, I figured I would need to edit the page.php file like this. Wasn't sure if there was some way to add the field back in through the config.php file.None the less, I did the following:<?phpclass...

View Article


How to delete uploaded files upon session expiry?

HiA form I have implemented uses UploadField to upload files. For a couple of reasons (saving space, not wanting File table to get unnecessarily cluttered, security & privacy) I immediately delete...

View Article

Re: Redirect user to group page upon login

Okay so I have spent a little bit of time trying to migrate the code to work with SS3, I have added new row to the DB before with no hassles, but this time is doesn't seem to be working,I think where I...

View Article

Re: SS 3.0 CMS Backend: no content shown, when clicking a menu-link.

Was it in CalendarAnnouncement.php (first line before <?php is blank)?Posted to: SS 3.0 CMS Backend: no content shown, when clicking a menu-link. | Show Thread | Post Reply

View Article


Re: Redirect user to group page upon login

Your code should look like <?php class GroupDecorator extends DataExtension {private static $db = array( 'GoToAdmin' => 'Boolean');private static $has_one = array('LinkedPage' =>...

View Article


Re: SiteTree Sort Order

Potentially a bug within SilverStripe. AFAIK that should work from a theory point of few. If you can reproduce the issue on a clean 3.1 install it would be good to report it as an issue on...

View Article

Custom CMS

Hi,I want to customise the backend CMS, starting with a couple of simple changes. To for example this dataObject:private static $db = array( 'SpeventID' => 'Int', 'Name' => 'Varchar',...

View Article

Re: SS3 DataExtension + Data Object

I don't suppose anybody got to the bottom of this problem?I am using a data extension to extend the site config. I have a $has_many data object in my extension. I have used a GridField and all the...

View Article

Re: Add placeholder text into search box

Is it possible to set the placeholder text in the template rather than in the PHP code?Posted to: Add placeholder text into search box | Show Thread | Post Reply

View Article


Re: Add placeholder text into search box

There is probably a way, but why would you need to do this? I am sure the php option is the conventional solution.Best,NovaWebPosted to: Add placeholder text into search box | Show Thread | Post Reply

View Article

Re: SS3 DataExtension + Data Object

Do somthing like this:Of course this is example!<?phpclass Galeria extends DataObject { private static $db = array( 'Title' => 'Varchar' ); private static $has_one = array( 'Image' => 'Image',...

View Article


Re: Custom CMS

CMS feild names only default to the column name if no title is given. You can specify the title when you create the field in you getCMSFeids function. The "Extending a basic site" tutorial covers this...

View Article

Re: SS3 DataExtension + Data Object

So it's not possible to do this by extending site config?Posted to: SS3 DataExtension + Data Object | Show Thread | Post Reply

View Article


Re: SS3 DataExtension + Data Object

i would think your Sponsor's has_one should point to the SiteConfig class, not the CustomSiteConfig, as the latter is not a DataObject in itself, it.just enhances the SiteConfig...Edit: An alternative...

View Article

Re: SS3 DataExtension + Data Object

Hey Martimiz,That was a good call, that I had not spotted, but unfortunately changing the has_one class to 'SiteConfig' still does not give the desired result! So it's still no dice!I think I may have...

View Article

Secure Folder

Hi there,Just a quick one i hope, i am using the PHP-Reports [link]http://jdorn.github.io/php-reports/[/link] Great product for queryining the database and getting info. What i need to do is make it so...

View Article
Browsing all 4235 articles
Browse latest View live