如何使用 Ez 制作 ebsites 目录列表?
我需要使用 Ez Publish 执行特定任务,但我不知道如何执行。
我需要做的是网站列表(网站目录)。我基本上需要添加两种数据:
- 网站名称
- 网站的 URL
然后,当我单击网站链接时,它将重定向到一个页面,其中包含带有链接的 IFRAME(网站的 URL)。
有人可以告诉我如何使用 Ez Publish 执行此操作吗?我是初学者。
此致,
I need to do a specific task with Ez Publish but I don't have a clue on how to do it.
What I need to do is a list of Websites(Website directory). I will need to add basically two kinds of data:
- Website Name
- URL of the website
Then, when I click in the website link it will redirect to a page where I have the IFRAME with the link(URL of the website).
Can someone give me a clue about how to do this with Ez Publish? I'm a beginner.
Best Regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有说明从哪里获取列表,所以我假设您已经有了该列表,只是想知道输入此类内容的正确方法。
登录网站管理区域,浏览到您想要列表所在的网站部分(通常是文件夹)。您将在文件夹下方添加“链接”类型的内容项。
选择“链接”内容类型,然后单击“在此处创建”按钮。输入内容(包括指向包含 IFRAME 的页面的链接 URL),然后发送以进行发布。
我假设这些网站是您自己的,因为许多网站现在都采取措施防止其他人将其页面放入 IFRAME 中。
如果您希望此页面不仅链接到 iframe 页面,还实际显示 iframe 内容,那么您需要覆盖默认链接模板(复制它并告诉 eZ 使用您的版本)并添加一些IFRAME 的 html。
如果您是输入此内容的主要用户,您也可以只允许 eZ 在主要描述文本区域(XML 块)中接受文字 HTML,然后粘贴到您的 IFRAME html 中。丑陋但设置很快。
您应该能够在社区网络论坛 http://share.ez.no/ 中找到许多输入文字 html 的示例论坛
You haven't said anything about where you're getting the list from, so I assume you have the list already and just want to know the correct way to input this type of content.
Login to the site admin area, browse to the part of the site you want the list to be at (usually a folder). You'll be adding content items of type 'link' below the folder.
Select the 'Link' content type and click on the 'Create' here button. Enter the content (including the link URL to the page containing the IFRAME) then send for publishing.
I'm assuming the sites are your own, since many sites now take steps to prevent others placing their page in an IFRAME.
If you want this page to not just link to the iframe page, but to actually display the iframe content, then you'll need to override the default link template (copy it and tell eZ to use your version instead) and add a bit of html for the IFRAME.
If you're the main user imputing this content, you could also just allow eZ to accept literal HTML in the main description text areas (XML Block) and just paste in your IFRAME html. Ugly but quick to set-up.
You should be able to find many examples of entering literal html at the community web forums http://share.ez.no/forums
您应该使用您需要的两个字段为其创建一个特定的类。
一个用于名称,另一个用于 URL。
然后,您只需为您的新类覆盖
node/view/full.tpl
即可在其中显示名称和带有已在类实例中输入的 URL 的 iframe。You should create a specific class for that with the two fields you need.
One for the name and another one with the URL.
Then you'll just have to make an override of
node/view/full.tpl
for your new class Where you will display the name and an iframe with URL that have been typped in your class instance.