bitscream képe

S lőn a kód a page.tpl.php idevonatkozó részéből:

<table align="center" border="0" cellpadding="15" cellspacing="0" id="content" width="100%">
  <tr valgin="top">
    <?php if ($sidebar_left) { ?><td id="sidebar-left">
      <?php print $sidebar_left ?>
    </td><?php } ?>
    <td valign="top">
      <?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
      <div id="main">
        <h1 class="title"><?php print $title ?></h1>
        <div class="tabs"><?php print $tabs ?></div>
        <?php print $help ?>
        <?php print $messages ?>
        <?php print $content; ?>
        <?php /*?><?php print $breadcrumb ?><?php */?>
      </div>
    </td>
    <?php if ($sidebar_right) { ?><td id="sidebar-right">
      <?php print $sidebar_right ?>
    </td><?php } ?>
  </tr>
</table>

Ha minden igaz a 'tabs'-os rész működteti az egészet; de ezen én egyszer sem változtattam az eredeti sminkhez képest!
0
0
breki képe

A nagyobb betü megoldása a style.css ben a következő:

.breadcrumb { 
    margin-top: 10px; 
    margin-bottom: 20px;
    font-size: 1.8em;
}

A breadcrumb áthelyezése pedig a page.tpl.php -ben
De inkább bemásolom az egészet egy-kis rendrakás után mert az eredetiben nem nagyon lehet kiigazodni :(

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language; ?>">
<head>  <title><?php print $head_title ?></title> 
 <meta http-equiv="Content-Style-Type" content="text/css" />  <?php print $head ?>  <?php print $styles ?>  <?php print $scripts ?>
 </head>
 <body>  
 <div id="container">    
 <div id="main">      
 <div id="content"><?php if ($mission): ?>        
 <div id="mission">          
 <div id="missioncontent"><?php print($mission) ?>          
 </div>        
 </div>
 <?php endif; ?>
 
 <em><?php if ($breadcrumb): print $breadcrumb; endif; ?></em>
 
 <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>      
 <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?> 
 <?php if ($tabs): print $tabs .'</div>'; endif; ?> 
 <?php if (isset($tabs2)): print $tabs2; endif; ?>     
 <?php if ($help): print $help; endif; ?>      
 <?php if ($messages): print $messages; endif; ?>			
 <?php if ($above_content): print $above_content; endif; ?>      
 <?php print($content) ?>      
 </div>
 <?php if ($sidebar_top or $sidebar_left or $sidebar_right or $search_box or isset($secondary_links)): ?>      
 <div id="sidebar"><?php if ($sidebar_top): ?>        
 <div id="bothcols">          
 <div id="bothcolscontent">            
 <?php print $sidebar_top; ?>          
 </div>        
 </div><?php endif; ?>        
 <?php if ($sidebar_left): ?>        
 <div id="leftcol">          
 <?php if (isset($secondary_links)) : ?>            
 <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>          
 <?php endif; ?>          
 <?php print $sidebar_left; ?>        
 </div><?php endif; ?>                
 <?php if ($sidebar_right or $search_box): ?>        
 <div id="rightcol">          
 <?php if ($search_box): ?>
 <div class="block block-theme">
 <?php print $search_box ?>
 </div><?php endif; ?>          
 <?php print $sidebar_right; ?>        
 </div>        <?php endif; ?>      
 </div>      <?php endif; ?>    
 </div>    
 <div id="header">      
 <?php if ($site_name): ?><h1 class='site-name'><?php print $site_name ?></h1><?php endif; ?>      
 <?php if ($site_slogan): ?><h2 class="site-slogan"><?php print $site_slogan ?></h2><?php endif; ?>    
 </div>    
 <div id="nav">      
 <?php if (isset($primary_links)) : ?>        
 <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>      <?php endif; ?>    
 </div>    
 <div id="footer">      
 <?php if ($footer_message) : ?><?php print $footer_message;?><p>Designed by <a href="http://www.seoposition.com">SEO Position</a> and <a href="http://blamcast.net">Blamcast</a></p><?php endif; ?>          
 </div>		
 <div id="footershim">
 </div>  
 </div>  <?php print $closure ?>
 </body>
 </html>
0
0
Illyés Edit képe

Ehhez egy új régiót kell létrehoznod a sminkben, ami majd ugyanúgy fog viselkedni, mint a meglévő fejléc-bal-közép-jobb-lábléc régiók.

1. Ha nincs template.php nevű fájlod, akkor hozz létre egyet, ha van, akkor nyisd meg. Ebben a fájlban kell deklarálnod a régiókat:

<?php
function sminkneve_regions() {
   return array(
      'right' => t('right sidebar'),
      'left' => t('left sidebar'),
      'content' => t('content'),
      'header' => t('header'),
      'footer' => t('footer'),
      'tartalomfent' => t('tartalomfent'),
  );
}
?>

2. A page.tpl.php-ban (és ha szükséges, akkor a style.css fájlban) meghatározod, hogy hová kerüljön a 'tartalomfent' nevű régió:

<?php
<div id="main">
<?php print $messages; ?>
<?php print $tartalomfent; ?>
<?php print $breadcrumb; ?>
<h1 class="title"><?php print $title; ?></h1>
<div class="tabs"><?php print $tabs; ?></div>
<?php print $help; ?>
<?php print $content; ?>
</div>

3. Ezek után a blokk beállítások oldalon bármelyik blokkot beteheted a 'tartalomfent' régióba, az a középső content rész fölött fog megjelenni.

0
0

Megjelent a Drupal 6.0 (frissítve)

Hojtsy Gábor képe

Már elérhető a Drupal 6.1! Egy év fejlesztés után a Drupal 6.0 stabil kiadása végre napvilágot láthat. Köszönet a közösség kemény munkájának, több mint 1600 hibajegyet (fejlesztést, új szolgáltatásokat, hibajavításokat) sikerült lezárni az egy év alatt. A változások egyértelműek a Drupal 6 könnyebben használható felületén, a biztonsági és üzemeltethetőségi fejlesztésekben, a barátságosabb telepítőt nézve és a bővített fejlesztői keretrendszert tekintve. Az új funkciók és hibajavítások nagy száma mutatja a Drupal fejlesztők elkötelezettségét a fejlesztők és webhelyarculat-tervezők irányában.

A Drupal manapság olyan nemzetközi nagyságok honlapjait működteti, mint a Warner Brothers Records, a The New York Observer, a Fast Company, a Popular Science és az Amnesty International. Különböző projektekhez használja a Drupalt a SonyBMG, a Forbes, a Harvard és sokan mások. Drupal-t használ az internet atyja is személyes blogjához (Tim Berners-Lee), de podcast (TWIT.tv), online közösségi (SpreadFireFox.com), művészeti (Terminus 1525) és szatirikus (The Onion) webhelyeket is ez a rendszer működtet. A magyar példák között hasonlóan találunk médiavállalatokat, közösségeket, önkormányzatokat és személyes blogokat egyaránt.

Kategóriák: 
vikicica22 képe

Elértem azt, hogy kilistázza csak az a baj, hogy a kategória nevek mellet nem a címet listázza, ki hanem csak kiírja, hogy 5 db van benne :(

pl.: Ajándék, játék, virág (5)
Cipő, táska, bőráru (5)

Nekem az volna a jó, ahogy fentebb írtam egyből látni a kategóriákhoz milyen címek taroznak

• Ajándék, játék, virág:
node 1 címe, node 2 címe, node 4 címe, node 7 címe

• Cipő, táska, bőráru:
node 3 címe, node 5 címe, node 6 címe, node 8 címe


$view = new view;
$view->name = 'kategoria';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Alapértelmezések', 'default');
$handler->override_option('fields', array(
'title' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'override' => array(
'button' => 'Felülírás',
),
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'name' => array(
'default_action' => 'summary asc',
'style_plugin' => 'default_summary',
'style_options' => array(
'count' => 1,
'override' => 0,
'items_per_page' => '25',
),
'wildcard' => 'all',
'wildcard_substitution' => 'Minden',
'title' => '%1',
'breadcrumb' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'glossary' => 0,
'limit' => '0',
'case' => 'none',
'path_case' => 'none',
'transform_dash' => 0,
'add_table' => 0,
'require_value' => 1,
'id' => 'name',
'table' => 'term_data',
'field' => 'name',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
),
'override' => array(
'button' => 'Felülírás',
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_fixed' => '',
'default_argument_user' => 0,
'default_argument_image_size' => '_original',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'uzletek' => 'uzletek',
'webform' => 0,
'image' => 0,
'nyeremenyjatek' => 0,
'page' => 0,
'programok' => 0,
'simplenews' => 0,
'story' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'3' => 3,
'2' => 0,
'1' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'image_size' => array(
'_original' => '_original',
'thumbnail' => 'thumbnail',
'preview' => 'preview',
),
'validate_argument_php' => '',
),
));
$handler->override_option('filters', array(
'status' => array(
'id' => 'status',
'table' => 'node',
'field' => 'status',
'value' => '1',
),
));
$handler->override_option('access', array(
'type' => 'role',
'role' => array(
'1' => '1',
'2' => '2',
),
'perm' => '',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('title', 'Kategóriák');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 0);
$handler->override_option('footer_format', '1');
$handler->override_option('empty_format', '1');
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', TRUE);
$handler->override_option('use_more', TRUE);
$handler->override_option('use_more_text', 'tovább');
$handler->override_option('style_plugin', 'list');
$handler->override_option('style_options', array(
'grouping' => '',
'type' => 'ul',
));
$handler = $view->new_display('page', 'Oldal', 'page_1');
$handler->override_option('path', 'proba');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));

0
0

Views Cloud probléma

Gabee képe

Sziasztok!

Egy olyan "kisebb" problémával szenvedek már jóideje, hogy letöltöttem a drupal.org-ról a views cloud modult, és elkezdtem beállítgatni.

A blokk része működik is már rendesen, viszont ha a blokkban rákattintok egy szóra, akkor a megadott oldalon megintcsak ugyan az a kulcsszó jelenik meg, és újbóli rákattintásra jön(nek) elő a kulcsszóhoz tartozó node-ok.

Ehhez kéne nekem valami segítség hogy milyen is a megfelelő beállítás, mert már a maradék hajamat is kitéptem, de sehogysem boldogulok vele.

Csakhogy bizonyítsam az amatőrködésemet, bemásolom a views "kódját".

Drupal verzió: 
Melyik modulhoz, modulokhoz kapcsolódik a téma?: 
mpradio képe

már előtte is így volt,mielőtt a centert betettem volna...
szerkesztem majd,ha esetleg megnézted,hogy ne foglaljon nagy hsz-t
jelen pillanatban ez kód:

 print $language [/geshifilter-questionmarkphp]" lang="<?php print $language ?>">
  <head>
    <title><?php print $head_title ?></title>
    <?php print $head ?>
    <?php print $styles ?>
    <?php print $scripts ?>
    <style type="text/css" media="print">@import "<?php print base_path() . path_to_theme() ?>/print.css";</style>
    <!--[if lt IE 7]>
    <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/fix-ie.css";</style>
    <![endif]-->
  </head>
  <body<?php print phptemplate_body_class($sidebar_left, $sidebar_right); ?>>
 
<!-- Layout -->
  <div id="header-region" class="clear-block"> <?php print $header; ?></div>
 
    <div id="wrapper">
    <div id="container" class="clear-block">
 
      <div id="header">
 
 
        <?php if (isset($primary_links)) : ?>
          <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
        <?php endif; ?>
        <?php if (isset($secondary_links)) : ?>
          <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
        <?php endif; ?>
 
      </div> <!-- /header -->
<center><?php
if($center) :
?>
<?php
print $center;
?>
<?php
endif;
?></center>
      <?php if ($sidebar_left): ?>
        <div id="sidebar-left" class="sidebar">
          <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
          <?php print $sidebar_left ?>
        </div>
      <?php endif; ?>
 
      <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
          <?php if ($breadcrumb): print $breadcrumb; endif; ?>
          <?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
 
          <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
          <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
          <?php if ($tabs): print $tabs .'</div>'; endif; ?>
 
          <?php if (isset($tabs2)): print $tabs2; endif; ?>
 
          <?php if ($help): print $help; endif; ?>
          <?php if ($messages): print $messages; endif; ?>
          <?php print $content ?>
          <span class="clear"></span>
          <?php print $feed_icons ?>
          <div id="footer"><?php print $footer_message ?></div>
      </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
 
      <?php if ($sidebar_right): ?>
        <div id="sidebar-right" class="sidebar">
          <?php if (!$sidebar_left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
          <?php print $sidebar_right ?>
        </div>
      <?php endif; ?>
 
    </div> <!-- /container -->
  </div>
<!-- /layout -->
 
  <?php print $closure ?>
  </body>
0
0
kovicsesfia képe

Szia kedves Zoli!

A page.tpl.php kódja:

<div id="content">
			<?php if (strlen($header) > 0) { ?><div id="top-header"><?php print $header ?></div><?php } ?>
 
			<?php if (strlen($mission) > 0) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
			<div id="main">
				<?php print $breadcrumb ?>
				<h1 class="title"><?php print $title ?></h1>
				<div class="tabs"><?php print $tabs ?></div>
				<?php print $help ?>
				<?php print $messages ?>
				<?php print $content; ?>
                <?php if (isset($signature)): ?>
                  <div class="user-signature clear-block">
                    <?php print $signature ?>
                  </div>
                <?php endif; ?>
				<?php print $feed_icons; ?>
			</div>
		</div>
 
		<?php if (strlen($right) > 0 || strlen($left) > 0) { ?>
		<div id="sidebar">
			<div id="feed">
				<?php
					$incoming_link = l(' ', 'rss.xml');
					$incoming_link = str_replace("href", "class=\"feed-button\" href", $incoming_link);
					print $incoming_link;
				?>
			</div>
			<?php if (strlen($right) > 0) { ?>
			<div id="sidebar-right">
				<?php print $right ?>
				<div id="sidebar-bottom">
					&nbsp;
				</div>
			</div>
			<?php } ?>
			<?php if (strlen($left) > 0) { ?>
			<div id="sidebar-left">
				<div id="sidebar-top">
					&nbsp;
				</div>
				<?php print $left ?>
				<div id="sidebar-bottom">
					&nbsp;
				</div>
			</div>
			<?php } ?>
		</div>
 

A poblémám:
csináltam blockot:sidebar-t és sidebar-right -ot
csináltam nmenut:sidebar-t és sidebar-right -ot
de nem müködik. Bal vagy jobb oldalsávba semmi.Tartalom sávba kiir valamit de
nincs a ---mooshroom.net--- hez hasonló menüm!

Talán valami régiót kellene létrehozni ? template.php -fájlt?

Köszönöm válaszod...

0
0
Robert Petras képe

Ha a Drupal által kínált alapértelmezett Bartik témát használod ez így is van. Ha letöltesz egy contrib témát vagy vásárolsz egyet akkor ennek utána kell nézni.

Esetleg ha saját magad tervezel egy új témát, akkor erről az CSS osztályról nekünk kell gondoskodnunk a Twig fájlban, ha jól tudom.

A minta fájl Bartik ezestében ez: /core/themes/bartik/templates/page.html.twig

  1. <div id="main-wrapper" class="layout-main-wrapper layout-container clearfix">
  2. <div id="main" class="layout-main clearfix">
  3. {{ page.breadcrumb }}
  4. <main id="content" class="column main-content" role="main">
  5. <section class="section">
  6. <a id="main-content" tabindex="-1"></a>
  7. {{ page.content }}
  8. </section>
  9. </main>
  10. {% if page.sidebar_first %}
  11. <div id="sidebar-first" class="column sidebar">
  12. <aside class="section" role="complementary">
  13. {{ page.sidebar_first }}
  14. </aside>
  15. </div>
  16. {% endif %}
  17. {% if page.sidebar_second %}
  18. <div id="sidebar-second" class="column sidebar">
  19. <aside class="section" role="complementary">
  20. {{ page.sidebar_second }}
  21. </aside>
  22. </div>
  23. {% endif %}
  24. </div>
  25. </div>
0
0
aboros képe

$view = new view;
$view->name = 'term_description';
$view->description = 'View to generate a block containing the term description on another view using term id as exposed filter.';
$view->tag = 'default';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'description' => array(
    'label' => 'Term description',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'exclude' => 0,
    'id' => 'description',
    'table' => 'term_data',
    'field' => 'description',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'tid' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'php',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    'add_table' => 0,
    'require_value' => 0,
    'reduce_duplicates' => 0,
    'set_breadcrumb' => 0,
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => 'if (isset($_GET[\'tid\'])) {
  return $_GET[\'tid\'];
}
return FALSE;',
    'validate_argument_node_type' => array(
      'page' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '1' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_php' => '',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
  'role' => array(),
  'perm' => '',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('items_per_page', 1);
$handler->override_option('use_pager', '0');
$handler->override_option('row_options', array(
  'inline' => array(),
  'separator' => '',
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);

figyeld meg jól, hogy mit csinál, argumentumként vár egy tidet, alapértelmezetten ad (nem várja, hogy legyen jelen) php code.. kiszedi a $_GETből, visszaadja.
egy sort jelenít meg, nem használ lapozót.
egy blokkot definiál.

ezt a blokkot kiteszed valahova és kész.

0
0

-
clear: both;