简体   繁体   English

Drupal7-制作广告

[英]Drupal7 - Creating Ads

I'm recreating a website in drupal7 from a basic html page. 我正在从基本的HTML页面在drupal7中创建一个网站。 This basic current html page has these two sidebars with specify ads squares for their website that they have made. 这个基本的当前html页面具有这两个侧边栏,这些侧边栏为他们制作的网站指定了广告方块。 This website is really old so all of their ad squares are created in images. 这个网站真的很老,所以所有广告方块都是以图片形式制作的。 So there is bassicly just an img tag in one ofthese squares. 因此,在这些方格之一中只是一个img标签。 In these pictures there is also an link to donation pages and other functions etc. It's done with an easy a tag. 在这些图片中,还存在指向捐赠页面和其他功能等的链接。只需使用简单的标签即可完成。 Anyway... 无论如何...

I want to create these ads squares in the sidebars for their new drupal site but I have no idea of how to do it. 我想在侧边栏中为他们的新drupal网站创建这些广告方块,但是我不知道该怎么做。 I've looked into CKEdtior and CKFinder but I dont find functions for it. 我研究了CKEdtior和CKFinder,但没有找到功能。 I want to recreate these pictures into real divs that has css styling. 我想将这些图片重新创建为具有CSS样式的真实div。

Do you guys have any idea of how to create these ads square to the new drupal site? 你们对如何在新的drupal网站上创建这些广告有任何想法吗? :) :)

Modueles? 模数?

Thanks 谢谢

You could add the ad as a block . 您可以将广告添加为 Blocks can be displayed in certain regions of your theme, on all or on certain pages of your site. 块可以显示在主题的某些区域,网站的全部或特定页面上。

See Working with blocks (content in regions) . 请参阅使用块(区域中的内容)


EDIT: 编辑:

If your users shall be able to create new ads, you could do the following: 如果您的用户能够制作新的广告,则可以执行以下操作:

  • create a content type "Ad" 创建内容类型“广告”
  • add all the fields you need, set the permissions 添加所需的所有字段,设置权限
  • with the Views module, you can create a new block display, which contains the relevant fields of your "Ad" content type 使用“ 视图”模块,您可以创建一个新的块显示,其中包含“广告”内容类型的相关字段

What else you have to do depends on when/how/which ads shall be displayed. 您还需要做什么,取决于何时/如何显示/展示哪些广告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM