Magento get CMS page content without header/footer
Magento get CMS page content anywhere on the site without header and footer using below script. You may need to do this for displaying CMS page on part of the page, like popup or sidebar of the page without using header and footer of the CMS page that generally comes when loading the page from the CMS URL.
$page = Mage::getModel('cms/page'); | |
$page->setStoreId(Mage::app()->getStore()->getId()); | |
$page->load('CMS-IDENTIFIER-HERE','identifier'); //EDIT IN THIS LINE | |
$helper = Mage::helper('cms'); | |
$processor = $helper->getPageTemplateProcessor(); | |
echo $html = $processor->filter($page->getContent()); |
Linux: Bash script to check availability of domain names in differnet TLDs
If you want to check whether your desired domain name is available or not in different extensions, it’s tiresome to search it for each and every tld. There are also limits of performing query to whois on websites, where they will not allow you unlimited whois information queries. It’s better to have your own script which will tell you the availibility of domain name in different extensions, right from your terminal.
Below script will check your domain name for TLDs .com, .net, .org, .info, .us, .co, .tel, .tv, .biz, .cc, .ru, .eu, .in, .it, .sk, .com.au, .sh, .re and .dk
But you can add other TLDs also if you want.
First create a file, e.g. chkWhois.sh, and give it proper permission to execute.
touch chkWhois.sh | |
chmod 744 chkWhois.sh |
Now, copy below code to this newly created file
Continue reading »
Linux: Bash script to get email address and created/updated/expires dates of domain name
In linux, to check the whois of any domain name, the simple command is:
whois domainname.com |
But, it will show you so many things which are not important, e.g. it will show you the NOTICE and TERMS of USE and so many other things.
If you are only concerned of getting the email address and creation/updation/expiry date of domain name from whois, here is the bash script that will help you out.
First create a bash script file, e.g. whoisEmailAndDates.sh and give it permissions to run:
touch whoisEmailAndDates.sh | |
chmod 744 whoisEmailAndDates.sh |
Welcome to my Blog
Certifications
Honor
Recognition
Contributions
Categories
- Apache (2)
- ChatGPT (1)
- Domain name (2)
- eCommerce (2)
- htaccess (1)
- Humor (3)
- Instagram API (1)
- jQuery (4)
- JSON (1)
- Linux (10)
- Magento (142)
- Magento admin (58)
- Magento Certification (5)
- Magento error (13)
- Magento frontend (68)
- Magento Imagine (2)
- Magento Interview (5)
- Magento Master (2)
- Magento2 (10)
- Mobile (1)
- MySQL (7)
- OpenAI (1)
- OroCRM (2)
- Performance (2)
- PHP (8)
- Prototype JS (3)
- Security (4)
- Wordpress (3)
- XML (2)