Natalia Souza wrote: > Oi Cleber > > Segue o codigo. Vc pode dar uma olhada p mim? > > <html xmlns:tal="http://xml.zope.org/namespaces/tal" > xmlns:metal="http://xml.zope.org/namespaces/metal" > i18n:domain="plone"> > <body> > <div metal:define-macro="portlet" > tal:define="box_id string:links; > portal_publicator nocall:here/portal_publicator; > pb python:portal_publicator.getPublicationBoxesInfo > (box_id); > isVisible pb/visible; > box_items python:pb['items'];" > tal:condition="python:template.getId()!='links' and isVisible > and box_items"> > > <dl class="portlet" id="portlet-news-p21"> > > <dt class="portletHeader"> > <a href="#" > tal:condition="python:'links' in portal.contentIds()" > tal:attributes="href string:${utool}/links" > i18n:translate="box_links">links</a> > <a href="#" > tal:condition="python:'links' not in portal.contentIds > ()" > tal:attributes="href string:${utool}/news_listing" > i18n:translate="box_links">links</a> > > <a href="" > tal:condition="python:checkPermission('Review portal > content', here)" > tal:attributes="href > string:${utool}/publicator_edit_form?box_id=${box_id}"> > <img src="" alt="Edit" title="Edit" height="16" > width="16" > tal:attributes="src > string:${utool}/publicator_edit_icon.gif" > i18n:domain="publicator" > i18n:attributes="alt; title;" /> > </a> > </dt> > > <tal:newsitems tal:repeat="obj box_items"> > <dd tal:define="oddrow repeat/obj/odd; > item_id obj/Id; > item_title obj/Title; > item_description obj/Description; > item_url obj/RelativeContentURL; > item_type obj/Type; > new_window obj/NewWindow; > item_icon obj/Icon; > item_date obj/Date;" > tal:attributes="class python:test(oddrow, 'portletItem > even', 'portletItem odd')" > tal:condition="python:item_url"> > > <a href="" > tal:attributes="href string:${utool}/${item_url}; > title item_description; > target python:test > (new_window, '_blank', None);"> > <img src="" alt="" title="" height="16" width="16" > tal:attributes="src string:${utool}/ > ${item_icon}; > alt item_type; > title item_type;" > i18n:attributes="alt; title;" /> > <span tal:replace="python:test(item_title, > item_title, item_id)">Title</span> > <span class="portletItemDetails" > tal:content="python:here.toLocalizedTime > (item_date)">May 5</span> > </a> > </dd> > </tal:newsitems> > > <dd class="portletFooter"> > > <a href="" > tal:condition="python:'links' in portal.contentIds()" > tal:attributes="href string:${utool}/links" > > > > More news… > </a> > > </dd> > </dl> > > </div> > </body> > </html> > > Abraco > > Natalia > > > --- Em zope-pt@yahoogrupos.com.br, Cleber J Santos > <[EMAIL PROTECTED]> escreveu > >> Natalia Souza wrote: >> >>> Oi pessoal, bom dia! >>> >>> Como eu faco para que o link para uma pagina externa criado >>> > dentro de > >>> um portlet abra direto na pagina? >>> >>> Quando clico nos links, eles direcionam primeiramente para a >>> > janela > >>> com o endereco do site e nao direto para o site. >>> >>> Obrigada >>> >>> Natalia >>> >>> >>> >>> >> Olá Natalia, >> >> Não sei se entendi direito sua dúvida, mas acredito que vc esteja >> falando sobre a tag *<a>*, verifique se dentro da tag onde você >> > chama o > >> link para a página contém ( target="_blank"), se sim, você deve >> > retirar > >> ou mudar para (target="parent") ;) >> >> At, >> >> -- >> #!/bin/bash >> # Name: Cleber J Santos >> # Email: [EMAIL PROTECTED] >> # Icq: 200007837 >> >> > > > > É sempre importante antes de postar o código analisar, veja que na mensagem anterior eu disse que se houvesse algum target="_blank" na tag <a> bastava você o trocar, veja que na linha 60 do código que vc enviou existe algo semelhante;
<a href="" tal:attributes="href string:${utool}/${item_url}; title item_description; target python:test (new_window, '_blank', None);"> Na verdade isso é uma validação, ele está verificando se o valor da variável *new_window* é igual a *_blank*, se for então será setado dentro da tag *<a>* o target como _blank, se não ele é nullo, ou seja, não será incluido o código. Pelo que vi este é o único motivo que iria fazer um link abri em uma nova janela, isso significa que o problema é que você está dizendo que deseja que este link seja aberto em uma nova janela. O erro não parece ser código! Você tem uma telinha onde gerencia os objetos que serão gravados no portal_publicator, lá é que vc tem que setar para não abrir em uma nova janela. At, -- #!/bin/bash # Name: Cleber J Santos # Email: [EMAIL PROTECTED] # Icq: 200007837