New to Concrete and a few Questions.

Permalink
Hi all,

how the Subject says im new to Concrete and have a few question. Im playing with Concrete since 3 days now and i realy like it, 3 years ago i run a joomla cms and its a diffrent like day and night.

One week ago i startet thinking about a new projekt and checkt the web for a easy to use CMS because i dont want to spend all the hours joomla takes to beeing a "nice" CMS.
So i found Drupal, people where saying if you do somthing small its good to handle. After 4 days i removed it because i wasnt able to handle it. I want to do my own theme with it and 4 days later i was still in front of a white page and still installing Modules.

Okay enough about my way finding Concrete and more about my questions.
Not to start with a white screen i downloadet the theme Avant_Garde and CSS't it to my personal wish. now i have a lot modified CSS code and was asking me what happens if there is a Update? I not only changed the base css, also other stuff.

Is it possible to just put all the CSS-Code in one file i.e. mycss.css, store it in the same folder like the base css and change the url inside the template or call it with @import? Is that save or possible that it can be deletet?


The seccond is, with the avant_garde theme came also 2 blocks. I like to use the Avant_Bio block but it made some problems. For now it is working but im not sure that this is the right way because i have 0 php knowledge, i just try around until it works.

So here is the original code:
<?php         defined('C5_EXECUTE') or die(_("Access Denied."));
$theLink = Page::getCollectionPathFromID($pageID);
$theLink = DIR_REL . $theLink;
$version_arr = explode('.', APP_VERSION);
if ($version_arr[1] < 2) die("This block doesn't support Concrete" . APP_VERSION);
if ($version_arr[1] == 2) {
        $fo        = $controller->getAssetFileObject();
        $fileName  = $fo->getFileRelativePath();
}
else {
        $ih = Loader::helper('image');
        $fo = $controller->getFileObject();
        $fileName = $fo->getRelativePath();
}
?>


But the problem is if i add a link inside the linnk goes to mydomain.com/index.php/CMS_dir/Page so it ends up in nowhere.

After 3 hours:
<?php         defined('C5_EXECUTE') or die(_("Access Denied."));
$theLink = Page::getCollectionPathFromID($pageID);
$theLink = $theLink;
$version_arr = explode('.', APP_VERSION);
if ($version_arr[1] < 2) die("This block doesn't support Concrete" . APP_VERSION);
if ($version_arr[1] == 2) {
        $fo        = $controller->getAssetFileObject();
        $fileName  = $fo->getFileRelativePath();
}
else {
        $ih = Loader::helper('image');
        $fo = $controller->getFileObject();
        $fileName = $fo->getRelativePath();
}
?>


I removed the DIR_REL . from line 4, took the $this->url from my footer and made a link from it and now i get the url mydomain.com/CMS_dir/index.php/page and it works.

Is there a nicer way to do that?

Greetings
Alex

 
anchoredbutterfly replied on at Permalink Reply
anchoredbutterfly