How to display taxonomy terms in block, drupal? - drupal-7

I've a taxonomy vocabulary
voca1
-item 1.1
--item 1.1.1
--item 1.1.2
--item 1.1.3
-item 1.2
--item 1.2.1
--item 1.2.2
--item 1.2.3
--item 1.2.4
--item 1.2.5
--item 1.2.6
-item 1.3
--item 1.3.1
--item 1.3.2
--item 1.3.3
when user click voca1, I want to display the terms by following at page.
item 1.1
item 1.1.1 item 1.1.2 item 1.1.3
item 1.2
item 1.2.1 item 1.2.2 item 1.2.3
item 1.2.4 item 1.2.5 item 1.2.6
item 1.3
item 1.3.1 item 1.3.2 item 1.3.3
How can I do?

i guess what you are looking for is taxonomy_term_load function, dig it you will find your way out.

Related

Element view not working in controller in CakePHP 4.x

As on CakePHP 3.x, $this->view working properly in controller.
After migration to the CakePHP 4.x version, it doesn't seems to work. Can't find any documentation under CakeBook 4.x.
Is there any syntax changes in CakePHP 4.x for $this->view or it's deprecated in newer version ??
Starting with CakePHP 3.1, the Controller $view property is deprecated.
https://book.cakephp.org/3/en/appendices/3-1-migration-guide.html#controller
view - replaced with template
In CakePHP 4.x use $this->viewBuilder() to setting and getting view options:
https://book.cakephp.org/4/en/controllers.html#setting-view-options
https://book.cakephp.org/4/en/search.html?check_keywords=yes&area=default&q=viewBuilder

Find angularjs version

I tried in browser console:
angular.version
And I got below
codeName : "foam-acceleration" dot : 3 full : "1.4.3" major : 1 minor
: 4
So what angular version is used? Is it angular2 or 4 or any other?
Thanks
You can console 'angular.version.full' for getting version of angular being used on that webpage.
Neither. It is not angular 2 or 4. It is AngularJS 1.4.3, which is what we commonly refer to as AngularJS 1.x
Your current Angular version is 1.4.3.
https://docs.angularjs.org/api/ng/object/angular.version
full is the current fullname version.
major, minor and dot are the 1.4.3 (major.minor.dot)

Angular not working correctly with Meteor 1.3.1

I am following www.angular-meteor.com tutorial on a windows computer.
But when I run meteor in console I only see:
A blank screen besides socially...
So it seems like some angular packages does not work with Meteor 1.3.1.
Here is output from meteor list:
accounts-password 1.1.7 Password support for accounts
angular 1.3.9_2 Everything you need to use Angu...
angularui:angular-google-maps 2.3.2 angular-google-maps (official)
angularui:angular-ui-bootstrap 0.13.0 Native AngularJS (Angular) direc...
angularui:angular-ui-router 0.2.15 angular-ui-router (official): Fl...
angularutils:pagination 0.9.1_2 Magical automatic pagination fo...
check 1.1.3 Check whether a value matches a p...
dotansimha:accounts-ui-angular 0.0.4 AngularJS wrapper for Meteor's Ac...
email 1.0.11 Send email messages
es5-shim 4.5.9 Shims and polyfills to improve EC...
jquery 1.11.7 Manipulate the DOM using CSS sel...
less 2.5.7 Leaner CSS language
meteor-base 1.0.3 Packages that every Meteor app needs
mobile-experience 1.0.3 Packages for a great mobile user ...
mongo 1.1.6 Adaptor for using MongoDB and Min...
reactive-var 1.0.8 Reactive variable
standard-minifier-css 1.0.5 Standard css minifier used with M...
standard-minifier-js 1.0.5 Standard javascript minifiers use...
tmeasday:publish-counts 0.7.3 Publish the count of a cursor, in...
tracker 1.0.12 Dependency tracker to allow reac...
twbs:bootstrap 3.3.6 The most popular front-end framew...
For example angularui:angular-ui-router seems not be working. But it works with meteor 1.2 version.
Is there someone out there that have the same problem? Maybe a solution as well?
Best Regards
EDIT
Removing dotansimha:accounts-ui-angular resulted in that I can see the map and search box. But The app is still broken. No parties are shown, pagination does not work and so on... Any ideas how to fix it?
I think I got it working now:
meteor list
accounts-password 1.1.7 Password support for accounts
angular-meteor-auth 1.0.1 Angular-Meteor authentication module
angular-templates 1.0.2 Compile angular templates into th...
angular:angular 1.5.3_1 AngularJS (official) release. F...
angularui:angular-google-maps 2.3.2 angular-google-maps (official)
angularui:angular-ui-bootstrap 0.13.0 Native AngularJS (Angular) direc...
angularui:angular-ui-router 0.2.15 angular-ui-router (official): Fl...
angularutils:pagination 0.9.1_2 Magical automatic pagination fo...
check 1.1.3 Check whether a value matches a p...
dotansimha:accounts-ui-angular 0.0.4 AngularJS wrapper for Meteor's Ac...
email 1.0.11 Send email messages
es5-shim 4.5.9 Shims and polyfills to improve EC...
jquery 1.11.7 Manipulate the DOM using CSS sel...
less 2.5.7 Leaner CSS language
meteor-base 1.0.3 Packages that every Meteor app needs
mobile-experience 1.0.3 Packages for a great mobile user ...
modules 0.5.2 CommonJS module system
mongo 1.1.6 Adaptor for using MongoDB and Min...
pbastowski:angular-babel 1.3.2 Babel compiler and ng-annotate fo...
reactive-var 1.0.8 Reactive variable
standard-minifier-css 1.0.5 Standard css minifier used with M...
standard-minifier-js 1.0.5 Standard javascript minifiers use...
tmeasday:publish-counts 0.7.3 Publish the count of a cursor, in...
tracker 1.0.12 Dependency tracker to allow reac...
twbs:bootstrap 3.3.6 The most popular front-end framew...
So I do use accounts-ui-angular!
I followed this link
What I did was:
First:
Remove the angular meteor package you installed via atmosphere: meteor remove angular
Make sure you have the ecmascript package installed. If you had the atmosphere angular package installed previously you may have removed it after getting a notice that multiple compilers were trying to handle files with .js extension. So check out meteor list and if ecmascript isn't there do: meteor add ecmascript
Install angular and angular meteor via npm: npm install angular angular-meteor --save
List 'angular-meteor' as a module dependency for your main module: angular.module('myApp', ['angular-meteor']);
meteor remove ecmascript
meteor add modules (ecmascript implies modules so you have to add it manually if you remove ecma)
meteor add pbastowski:angular-babel
Note that I do not need to import angular in app.js (no import angular from 'angular'; or import 'angular-meteor';)
Now:
Hope that helps if someone have the same problem:)
I found that the problem is the incompatibility with this package:
meteor remove dotansimha:accounts-ui-angular
Don't forget to remove the dependency 'accounts.ui' on 'app.js'
Just removed and the result:
Possibly the problem is why somehow this package uses the "blaze-html-templates"

angular 2 with modules from angular 1

Using angularjs 2 with typescript don't know how to use angular 1 modules like ui-grid or fullcalendar.
I can add module ui-grid with typescript?
Have a look at the migration guide:
AngularJS 1 to Angular 2 Upgrade Strategy
, and specifically this section: "Wrapping: AngularJS 1 to Angular 2"
You might also find this post useful: Angular 1 and Angular 2 integration: the path to seamless upgrade
PrimeNG provides FullCalendar integration and a DataTable, code is open source so you can review how the integration is done. DataTable is native though. http://www.primefaces.org/primeng/#/schedule

Angual material Dialog with List Zero index not working with newer vesion

Currently,I am facing one problem ,code is working in Angular 1.3 and material 0.6 version but not with newer version.
Angular Material Model working plunker link
UPDATE: Issue is replicated in below plunker
Not Working with Angular 1.4.0 and Material 0.11.1
At my localhost ,After Selecting English language instead of index alert box shows true

Resources