You are here

Drupal

Drupal kerfið sem slíkt  

Video podcast um mismunandi themu fyrir Drupal CMS kerfið http://drupal.org/themedeveloper update á drupal http://drupal.org/node/297496 video námskeið http://drupal.org/videocasts , http://drupal.org/node/62192 , http://drupal.org/videocasts , http://www.lullabot.com/videocast , http://blip.tv/posts/?topic_name=drupal , http://video.google.com/videosearch?q=... Video um CCK module http://blip.tv/file/1562671/ eða Content Construction Kit Spurningin er hvernig breytir maður útlitinu á þemanu? Leiðbeiningar er að finna á http://drupal.org/node/341628 fyrir drupal 6.x

  • Til að notast við Tinymce editor þá þarf að ná í module á http://drupal.org/project/tinymce og setja hann í möppuna "modules/tinymce".  Síðan þarf  að sækja source á http://tinymce.moxiecode.com/download.php og af þjappa þannig að allt sé í "module/tinymce/tinymce".  copera 'modules/tinymce/plugins/drupalbreak' yfir í 'modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalbreak'.  Fara í Administer -> Site building -> Modules og enable.  Velja hverjir fá aðgang Administer -> User management -> Permissions. Búa til profile í Administer > Site configuration -> TinyMCE.
  • Spellchecker sótt hér, http://tinymce.moxiecode.com/download.php, af þjappað í möppuna /sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/, mappan spellchecker verður til, nano config.php, $config['general.engine'] = 'PSpell'; ( allt annað með // ), nano editor_plugin.js og nano editor_plugin_src.js í 'spellchecker_languages','+Icelandic=is, ( bætti við +Icelandic=is (+ þýðir default).  apspell og aspell-is þarf að vera installað á servernum.

       FCKeditor er mun betri.  Spellchecking með aspell

   Tinymce editorinn var mun verri en fckeditor.   Það er tiltölulega lítið mál að setja þetta inn.  Síðan var það dálítið mál að fá spellchecking til að virka.  Sótti nightly útgáfu sem gæti verið bögguð en hún er með Íslenskri þýðingu. Downloada frá http://www.fckeditor.net/download í sites/all/modules/fsckeditor/.  tar xvfz skra.gz, chown -R .....;..... fckeditor.

Breyta fckeditro/fckeditor/fckconfig.js, til að fá forritið til að nota aspell stafsetningarvilluleiðréttinguna.

FCKConfig.SpellChecker = 'SpellerPages' ;

Til að fá spellchecker til að virka með aspell og aspell-is í linux þá þarf að  sites/all/modules/fckeditor/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts og leita eftir "by FredCK", en_EN eða en_US ( breyta í is_IS ) og aspell ásamt fleiru er varðar linux og eða window$  sbr. http://docs.fckeditor.net/FCKeditor_2.... Skrárnar heita spellchecker(cfm, php og pl).  Breyta þessu á einum stað í öllum skránum.    Leita einnig eftir Linux og taka út þar sem stendur windows.

Lightbox2 module er til að byrta myndir, kvikmyndir, vefsíður svipað og apture. 

Hér eru dæmi um notkun á lightframe í gegn um lightbox2  Leita á google Leita á yahoo

Velja og setja upp ákveðna forsíðu

http://tips.webdesign10.com/drupal/how... eða forsíðan er valin http://example.com/admin/settings/site...    Ef það er ekki valið kemur úrdráttur á forsíðuna ( sem reyndar er hægt að stilla ).

 

 

Uppfæra ( upgrade ) drupal með drush - drupal shell

Taka afrit af möppum og gagnagrunni ( eiga þau allavega til ).
 
drush dl > rsync -rltD drupal-VERSION/ . > drush updatedb
 
Ef að eitthvað hefur verið átt við skrárnar .htaccess og robots.txt þarf að afrita þær til baka,
cd /slóð/að/möppuafritum > cp -a .htaccess robots.txt /var/www/web1/web
> chmod -R eigandi.hópur /var/www/web1/web > rush update > drush refresh > drush status
 
Fckeditor conflikt vegna marinelli þema
 

Það þarf  að stilla fckeditor með marinelli þemanu.  Það notast við background image í editornum.  til að nota eigin css á alla aðgangshópa (default og advanced) > admin/settings/fckeditor > css > Editor og Predifined styles > Fckeditor default

 
scc stilliskráin fyrir editorinn er í ../modules/fckeditor/editor/css/fck_editorarea.css
 
PECL uploadprogress 
 
apt-get install php5-dev,  pecl install uploadprogress,  nano /etc/php5/apache2/php.ini, extension=uploadprogress.so

Patch við drupal

 
Provided that the patch was made relative to the Drupal root directory, navigate to the Drupal directory (using cd) and issue the command: patch -p0 < path/file.patch
 
If the patch was not made relative to the Drupal root directory you can place the patch in the same directory as the file being patched and run the patch command without the -p option. To do so, cd to the directory and type: patch < file.patch
 
Patch will usually auto-detect the format. You can also use the -u command line option to indicate a unified patch, and the -b option creates a backup copy of the file before modifying it. In case of problems, you can then easily restore the backup file.
 
 Automysqlbackup 
 
Tekur backup af mysql gagnagrunnum.   Í Ubuntu apt-get automysqlbackup.  Stillt í /etc/default/automysqlbackup,  dpkg -L automysqlbackup /etc/cron.daily/automysqlbackup
 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer