frontpage

Using front.tpl in Drupal 7 for another Page

爱⌒轻易说出口 提交于 2019-12-24 00:23:09
问题 Pretty straight forward question: I have page--front.tpl and page.tpl template pages in use in a drupal 7 site. However, I'd like to use page-front.tpl on one other page. Is this possible or do I need to create another .tpl page to do this. The site I'm working on is split into two sections, it's essentially two seperate websites that you can flip between whether your a consumer or business owner. So I want to use the front.tpl template for the home page of each site. Cheers. 回答1: You can add

FrontPage tags - Pain in da HTML

泄露秘密 提交于 2019-12-13 12:16:42
问题 I have a webapplication, developed and ready to be deployed. The web part of it was designed using M$ FrontPage. None of the developers cared about proprietary weird tags that FrontPage inserts into HTML. I don't remember tags on top of my head, but I remember seeing tags such as <webbot> and etc. Now, my client doesn't want to see a bunch of useless tags obscuring HTML when a view source is done. This is not good from a application maintenance perspective too. I tried googling for tools that

Unable to change front page & no items displayed on menu nav (WordPress)

主宰稳场 提交于 2019-12-11 16:31:38
问题 without making any changes on my website recently it just broke. My homepage disappeared by itself and when i try to change the front page or add/edit menus from the wp-admin i can't. On nav-menus settings under pages section it shows "No items." but i got over 50 pages. On settings/reading there is no option for changing the front page & same goes on CUSTOMIZE option. Check the image, http://i.imgur.com/cAqJwTt.jpg Update : It was a database "corruption". Ι restored a backup that i had and

FrontPage tags - Pain in da HTML

南楼画角 提交于 2019-12-04 15:23:37
I have a webapplication, developed and ready to be deployed. The web part of it was designed using M$ FrontPage. None of the developers cared about proprietary weird tags that FrontPage inserts into HTML. I don't remember tags on top of my head, but I remember seeing tags such as <webbot> and etc. Now, my client doesn't want to see a bunch of useless tags obscuring HTML when a view source is done. This is not good from a application maintenance perspective too. I tried googling for tools that would remove these tags from html without unknown side effects and I haven't really found anything

BeautifulSoup: Strip specified attributes, but preserve the tag and its contents

岁酱吖の 提交于 2019-12-01 02:28:27
问题 I'm trying to 'defrontpagify' the html of a MS FrontPage generated website, and I'm writing a BeautifulSoup script to do it. However, I've gotten stuck on the part where I try to strip a particular attribute (or list attributes) from every tag in the document that contains them. The code snippet: REMOVE_ATTRIBUTES = ['lang','language','onmouseover','onmouseout','script','style','font', 'dir','face','size','color','style','class','width','height','hspace', 'border','valign','align','background