schemaorg Module Drupal 7 is not working - php

I have installed schemaorg Module in Drupal 7 Project, and have followed instructions in this video.
But it is not working for me.
I have tested it on this link.
But it is showing me the following result:
0 ERRORS 0 WARNINGS 0 ITEMS
And in source code as well I am not able to find any code for micro data...

Enable core RDF module along with Schemaorg module. You won't see any changes. If you go to admin area for content type there will be some new options. The link for all available types you can use: http://schema.org/docs/full.html
Please read this great article: https://www.lullabot.com/articles/how-does-rdf-work-in-drupal-7
UPDATE
I did some research, apparently according to google, JSON-LD is the recommended format, not RDFa as I thought. I fired up a new project on https://simplytest.me and I installed schemaorg module first. I had errors when I paste code snippet from Person content type, check here, but when I removed sioc:Item foaf: from typeof="" the errors were gone. Check here. Apparently you need to find the way through your template file to remove those extra lines in order to work from google search engine.
I tried new solution, and installed module which worked rightway from installation, which supports google JSON-LD, and the results were perfect!! The name of the module is structured data but you also need to install all dependencies, I think meta tags module, token.
When you visit the page in admin/config after installing you will see at the bottom of the page STRUCTURED DATA (RICH SNIPPETS) - MAIN CONFIG where you can add site name and logo. When you create new content let's say article, on the left sidebar you will see Meta Tags, if you want to add some futures, or disable.
Just to add that it is very important the theme you are using. If you are using custom theme (like from your example) bear in mind that HTML code should be well structured.
There is also nice article adding structured data to Drupal 7 nodes, with some examples which can help you to dive into tpl files.
I hope it helps

Related

TYPO3 v10 - Why is custom CE CType not shown in Backend pageview?

I have a custom content element in a TYPO3 v10 installation.
It works just fine - except one thing.
When creating a TYPO3 standard content element it's type is shown above the headline in pageview in backend. In my content element only the headline is shown - but not the type.
It would be nice to have the type shown above the header. Like the "Text & Media Element" label as shown in the screenshot. How can I achieve that?
It's best seen on this screenshot:
I already looked up the documentation, but didn't find a solution.
Additional info: first I had the problem that the icon in this view was always the default ce-text one, although I configured the "content-map" one from the core icons.
I could fix that by adding $GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['my_ext_map'] = 'content-map';
to
EXT:my_ext/Configuration/TCA/Overrides/tt_content.php
Maybe that relates?
This can easily be done via a hook which is described in the second part „With "Classic" Page Module“ of the above mentioned „Configure Custom Backend Preview for Content Element“. I'm using this with nearly all of my own content elements.
I'm adding the icon the same way as you, but with a custom icon. There should be no interference.
As far as I know it's not a default feature of TYPO3 v10 to show the CType in the backend preview as shown in your screenshots. We maintain a lot of instances and I can't find one which shows the CType like you.
What extensions do you have installed in your TYPO3 instance? Maybe there is an extension which adds a Custom Backend Preview?
You can check that in the Configuration Module. Got to $GLOBALS['TCA'] and then tt_content => ctrl => previewRenderer.
If you don't have the configuration module you need to install the system extension "lowlevel".
From an editors point of view: it is really an added value for the editor to see the CType as text in the preview? For me it clutters the preview too much. The CType can be determined by the icon as you mentioned as well. And if an Editor really needs to know the CType, simply edit that element.

How can I successfully use a WordPress plugin to add styling to a website?

Some people are already styling their own websites, so is it possible
How do I get an html/css form to post to Gravity Forms?
Here is the link that also recognizes the problems that wordpress has, with users adding code, but it says if you download this plugin, your problems will be solved: Raw HTML plugin.
Here are the instructions from the website above:
To install the plugin follow these steps :
Download the raw-html.zip file to your local machine.
Go to ‘Plugins -> Add New -> Upload’.
Upload the zip file using the provided form.
Activate the plugin through the ‘Plugins’ menu in WordPress
Alternatively, you can search for “Raw HTML” in ‘Plugins -> Add New -> Search’ and install it from there, or unzip raw-html.zip and
upload the raw-html directory to your /wp-content/plugins directory.
I generally get to the point where I download the plugin (step 1, raw form) and then I am unable to proceed further. What should software I open the plugin with or do I need to go online (and where) to download the correct software?
Basically, I found out that certain software is required, not the plugin, to allow styling to the website. The link to access this feature is: how-to-use-plugin-not and she explains step by step. This thing type is for people using CSS, Bootstrap, HTML5, and JQuery. As far as I can see, no amount of research shows that a plugin is necessary but I was correct that certain preparatory steps were necessary. This is different than and unique from other methods of deeper coding.
Going to GitHub for an online portfolio would be more appropriate (shows your mastery more). This is according to Joshua Scott from free code camp but WordPress is great to develop CMS skills according to Jamie Schmidt, a developer for eight years.
The quick and dirty way that doesn't need any plugins or fiddling with the theme: throw your code into the content of the page you want it to appear on. Adding in the body is perfectly fine, and linking stylesheets outside of head works, even though it's not allowed in the specifications.
To do it the right way, you'll have to get your hands dirty and use a custom template file for the HTML and add your scripts and styles via wp_enqueue_script/wp_enqueue_style.

Drupal 7 theme template file names not working

I have extensively read many articles and the Drupal docs on how to create Drupal 7 theme templates, but for some reason none of the recommendations are working.
I have fresh install as of Friday, I have uninstalled all Modules. I have only created 3 basic page with a machine name of "page", a Content Type with the machine name of "staffers". I have my wrapper in page.tpl.php, which is working.
I can get the staffers content type to work only if I use node--nid.tpl.php ("node--6.tpl.php"), however I can not get node--staffers.tpl.php to work.
Additionally page--id.., or node-id.. will not work for the "page" content so I can't even figure how I can write a single custom template for each page id I want, or an overall template for the "staffers" content type.
I have nothing coded in my template.php at this point, and even with customethemename_preprocess_node being added I was unable to load the page--front.tpl.php I read about once.
So how do I get Drupal to load the template by nid or machine name for pages and custom content types?
In drupal-7, page--front.tpl.php should be appeared by default. You can check whether you have uninstalled any core module or not.

Magento Success Page Reverts to Default Theme

We recently added a new extension to our site that adds multiple serial codes to a product (http://www.modifymage.com/instructions/serial-codes). Everything works great except when you try to purchase one of the items. It gives you a success page that uses the default theme.
Everything appears to be setup correctly in terms of the backend. I’ve already contacted the creator but I doubt they’ll provide any support.
Also, when I view source it says its referencing the right theme but when “Inspect Element” it tells me its using the default theme.
Any ideas? I’m thinking its a template issue but the success page uses the custom theme’s CSS.
This is very unlikely to have anything to do with our extension. Our extension does not interact in any way with the front end themes.
In the Admin Panel, please first go to:
System > Configuration > General > Design
And check the settings under the Package and Themes sections. Please see this forum post for an example that presents itself exactly like the problem you are experiencing and how it was fixed:
http://www.magentocommerce.com/boards/viewthread/281457/
If that is all set up correctly, next try disabling the output of our extension and see if the problem goes away. You can do that here:
System > Configuration > Advanced > Disable Module Output
Disable Mmsmods_Serialcodes. If this doesn't fix the problem, make sure the design file template/checkout/success.phtml is located in your design theme folder.
I hope that helps. If you are still having problems, or if you have any additional questions or concerns, please notify our support department once again.

How to add multi-language support to opencart module

I've gotten pretty good at creating my own vqmods and it has allowed me to customize the cart to my heart's content. I am now at a point where I want to start supporting the other official language in my country.
I've searched and searched plus looked as some modules on the opencart extension store but still can't quite get a grasp on it. There are no posts that I could find in the support forums explaining how to go about achieving this. I have a module that creates a new tab on the product page. On this tab, I have use ckeditor to format the text and all works well.
I've seen it done where you go into a module to customize it and you can see extra buttons to add text for different languages. Just can't find any free modules that uses this so that I could muddle my way through making it work.
Can anyone help me to add multilanguage to my custom opencart modules?
I was able to figure it out by looking at another mod with language files in it.

Categories