Friday

Drupal7 - Add source to feed item - Feed module -


Feed item doesn't show a link to the  source article (in the original website), to add a link to the source  (to view a full article) do the following steps:

1- add a new field to the content type: Feed Item (field_source)
2- go to Structure --> feed imporer

Saturday

Hiding message: The image was resized to fit within the maximum allowed dimensions ...

This message appears when uploading large images with dimensions exceed the allowed ones:
"The image was resized to fit within the maximum allowed dimensions ..."
To hide the message, open file:


Tuesday

Fatal error: Allowed memory size of 67108864 bytes exhausted

You may see this massage in updating drupal or when  enabling some modules.

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 14 bytes) in includes/theme.inc on line 978


Upgrade/Update drupal 7 to 7.2 or 7.4


1.  Go to Administration > Configuration > Development > Maintenance mode

Enable the "Put site into maintenance mode" and save.

2. Remove  old core files and directories, except for the 'sites' directory
+ any custom files you added.
If you made modifications to some core files, you will need to re-modify them after upgrading.

Friday

Drupal7: Hide and print contents and fields in "node.tpl.php"

Drupal defines the content as An array of node items($content). You can print all the array elements using render($content)  or print a subset as render($content['field_example'])


To print a subset of the elements, first hide this element:
hide($content['field_example'])  

Drupal 7: How to get rendered blocks in content region


Some modules are added by default to content (as rating and share modules), but others are not allowed to be rendered or added whiten contents or articles.

As an example, you may need to add "Related or Relevant" articles after the article,in this case this topic is what you need.

Sunday

Joomla vs. Drupal Terminology


Joomla and Drupal have different terms:


  1. Joomla Template = Theme in Drupal.
  2. Component = Module in Drupal.
  3. Module = Block in Drupal.
  4. Mambot/Plugin = Input filter in Drupal.

Joomla vs Drupal


 

  1. Drupal allows you to assign content to several Sections/Categories, while Joomla only supports one Section and one Category for each Article.
  2. Drupal supports multi-site setups, so a migration from " multi-site with Drupal" to Joomla must be put into a certain site.
  3. Drupal has built-in forum discussion and you don't need to install any additional modules.
  4.  "Blog" term in Joomla is actually a teaser of contents : Title, Introduction and a Read More link. It's not the same as blog in Internet dictionary.So, Joomla supports a 'Blog' by default,  but with a different meaning.
  5. Comments on contents are not available in Joomla by default, but Drupal supports comments for all content-types by default.
 Find more in drupal.org